O'Reilly logo

Instant Lucene.NET by Michael Heydt

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Narrowing the search space using filters (Become an expert)

In Lucene.NET you use filters to constrain the search space of a query. Constraint of the search space via filters is an important concept to understand, as they can be used to increase performance of queries by first excluding results before time is taken to compute scores.

Filters can also be used to provide security by excluding documents to which a particular user does not have access. Not only do filters exclude such documents, but they also do so in such a way that these documents do not affect the scoring of documents that a user can see. Results caching is also something easily implemented with filters, and Lucene.NET provides several out-of-the-box caching filters if you need ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required