see on GitHub

Session : Querying : How to use Lucene

Lucene flavored syntax can be used with the WhereLucene method, a part of the filtering methods available in IDocumentQuery.


IDocumentQuery<T> WhereLucene(string fieldName, string whereClause);

fieldName string Name of a field in an index
whereClause string Lucene-syntax based clause for a given field


List<Company> results = session
    .WhereLucene("Name", "bistro")
List<Company> results = await asyncSession
    .WhereLucene("Name", "bistro")
from Companies 
where lucene(Name, 'bistro')