Lucene: Query vs Filter

Query: How well does this document match the search condition? A question of score

Filter: Does the document match the search condition, or not? A question of true or false. Filters can be used for exact matching, range queries etc.

Filtering is faster the querying because it doesn’t care about scoring.

Leave a Comment

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.