Best way to exclude object from search with Fluent NHibernate Search

247 Views Asked by At

I have a class with a boolean property.

I want to exclude instance with a false value from search result.

What is the best way to do that with Fluent NHibernate Search ?

1

There are 1 best solutions below

0
Guillaume Besse On

I think you have 3 ways of doing that

  1. exclude instance from being store in the lucene index
  2. using full text filter (more here)
  3. "kind of where clause" using Lucene Query

Using full text filter seems to be the best solution. Unfortunately, it's not implemented in Fluent Nhibernate Search. I found a hack and hope to be able to contribute adding this feature.