You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
_var searcher = myIndex.GetSearcher(); // Get a searcher
var results = searcher.CreateQuery() // Create a query
.Field("Address", "Hills") // Look for any "Hills" addresses
.Execute(); // Execute the search
But, can we use multiple fields? Like:
_var searcher = myIndex.GetSearcher(); // Get a searcher
var results = searcher.CreateQuery() // Create a query
.Field("Name", "Frank") // Look for any "Frank" names
.Field("Address", "Hills") // Look for any "Hills" addresses
.Execute(); // Execute the search
There are tons of different searching examples there.
The docs could definitely use some more love and would be great if you or anyone could help contribute to them. They are very easy to edit, can even be done directly on GitHub by editing the files, for example, this is the searching file: https://github.com/Shazwazza/Examine/blob/master/docs/searching.md
On page https://shazwazza.github.io/Examine/searching , we can search by specific field:
But, can we use multiple fields? Like:
BTW: the link on that page to https://github.com/Shazwazza/Examine/blob/master/src/Examine.Test/Search/FluentApiTests.cs is broken.
The text was updated successfully, but these errors were encountered: