Suppose I have a lucene query 'id1 OR id2 OR id3 ... idN'. How well does that scale as N increases?
The situation I'm looking at would be similar to someone doing a text search on products in their shopping cart, but they may have hundreds or thousands of items their shopping cart. The user wants to do a text search across all products in their shopping cart. Could I do a text query against all available products, then limit the items returned with a OR clause of product IDs in their cart?
The maximum number of clauses in a boolean query is 1024 by default. You can increase this limit. There would be performance penalty, though. I suppose, it would be efficient if you use Filters instead.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With