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?
1024. . , . , , .
, . , , 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, .)
@Shashikant Kore, 1024.
, MoreLikeThis - .
FilteredQuery . . , ( QueryParser). ( TermsFilter).
Limiting the number of Boolean operators in your query.
Source: https://habr.com/ru/post/1761263/More articles:What does this expression a [b] mean in C # - c #Как добавить ApplicationServices, чтобы я мог #import? - cocoaIs there a way to remove magic numbers from an XML schema? - wsdlИспользование кодовых контрактов в библиотечном коде, построенном с помощью MSBuild - msbuildМогу ли я использовать библиотеки LGPL (на стороне клиента javascript или стороне сервера) в моих коммерческих веб-приложениях? - software-distributionCall the number that contains #. (IPhone SDK) - iosMarshal .ReleaseComObject exception - c #Fixed output php exec - phpPointer Based Array Access in MIPS - assemblyПочему приложение .NET предотвращает закрытие Windows? - debuggingAll Articles