Solr Terms Query for matching many terms - Solr 'n Stuff
Solr 4.10 and Heliosearch .07 have added a terms
query (or terms filter) to more efficiently match many terms in a single field.
A large number of terms are often useful for things like access control lists or security filters. Previously, the only way to do this was a large boolean query with many clauses, which has unnecessary overhead when scoring is not needed.
Solr's implementation uses Lucene's TermFilter class, as does Elasticsearch's terms filter.
The Heliosearch terms query implementation has some additional features:
- prefix compression including off-heap construction
- direct creation of off-heap filter for faster execution and less garbage production
- native code bit-setting
- ability to skip sorting the terms if desired
Read full article from Solr Terms Query for matching many terms - Solr 'n Stuff
No comments:
Post a Comment