You are currently browsing legacy 1.0 version of documentation. Click here to switch to the newest 5.0 version.
Lucene queries example
Looking for words
In case we want to find all documents with property Text containing some word.
Looking for phrases
In case we want to find all documents with property Text containing specified sentence.
Take a look at these tests.
How can I query for a null value?
Let us say that we want to find all users that didn't provide their email. This is the query that we will need to issue:
The [[ ]] denotes and NotAnalyzed value, and Raven writes NULL_VALUE to the Lucene index when it encounters a null being indexed.