I am using Bleve (Couchbase FTS) to index about 20,000 to 30,000 documents (products) for ecommerce search and faceting.
There is a field in my documents called categories. This field is an array that contains all of the "categories" a product is in. At the moment, there are about 700 categories. For example:
{
"categories ": ["Fashion", "Scarves"]
}
In my code, I ask Bleve to create a term facet on the categories field. I then allocate each term returned by Bleve to a group (which I display on my website). As there are 700 categories, I tell Bleve to return at most 700 terms in the facet.
So my question is,
Is there any danger in asking Bleve to return 700 terms in a facet? I have not noticed any issues. Also, what's the maximum number of terms in a facet that Bleve can handle?
I will also note that 99.99% of searches will probably only return at most 200 categories.
Hi,
I am using Bleve (Couchbase FTS) to index about 20,000 to 30,000 documents (products) for ecommerce search and faceting. There is a field in my documents called categories. This field is an array that contains all of the "categories" a product is in. At the moment, there are about 700 categories. For example:
{ "categories ": ["Fashion", "Scarves"] }
In my code, I ask Bleve to create a term facet on the categories field. I then allocate each term returned by Bleve to a group (which I display on my website). As there are 700 categories, I tell Bleve to return at most 700 terms in the facet.
So my question is, Is there any danger in asking Bleve to return 700 terms in a facet? I have not noticed any issues. Also, what's the maximum number of terms in a facet that Bleve can handle?
I will also note that 99.99% of searches will probably only return at most 200 categories.