couchbaselabs / cbft

*THIS PROJECT HAS MOVED* from couchbaselabs TO: https://github.com/couchbase/cbft -- no further development will be done here on couchbaselabs/cbft
Other
27 stars 5 forks source link

How many terms in a facet can Bleve "safely" handle? #192

Open jgschis opened 2 years ago

jgschis commented 2 years ago

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.

jgschis commented 2 years ago

Sorry, I posted this in the wrong forum.