Lucene request size - this scale? request for '1 OR 2 OR 3 .. OR N'

Suppose I have a lucene query 'id1 OR id2 OR id3 ... idN'. How well does this scale increase with increasing N?

The situation I'm looking at will be similar to those who do a text search on products in their shopping cart, but they may have hundreds or thousands of items in their shopping cart. The user wants to perform a text search on all products in his shopping cart. Can I make a text query for all available products and then restrict the items returned with the OR clause in the product identifiers in the cart?

+3
source share
5 answers

1024. . , . , , .

+4

, . , , OR'd . p - ( term/doc), , k, O (p log k). . Doug .

q OR'd t , - O (q log t + p log k), p log k . ( , t t, .)

+2

@Shashikant Kore, 1024.

, MoreLikeThis - ​​ .

+1
+1

Limiting the number of Boolean operators in your query.

0
source

Source: https://habr.com/ru/post/1761263/


All Articles