couchbaselabs / couchbaselabs/cbft

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

Open
#192 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
26
Forks
5
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.