You are currently browsing legacy 4.1 version of documentation. Click here to switch to the newest 5.1 version.

We can help you with migration to the latest RavenDB

Contact Us Now
see on GitHub

Session: Querying: How to Perform Proximity Search

To find words within a specific distance away use proximity method. This method is available only from DocumentQuery level and can only be used right after search method.


IDocumentQuery<T> proximity(int proximity);
proximity int Number of words within.


    .search("name", "quick fox")
from Foxes
where proximity(search(Name, 'quick fox'), 2)