Created
November 3, 2016 13:54
-
-
Save MikeGoldsmith/838db2b72b96247ecb4f7b93f977695b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var query = new SearchQuery | |
{ | |
Query = new PhraseQuery("inn").Field("name"), | |
Index = "idx_travel" | |
}; | |
query.Skip(0).Limit(10).Timeout(TimeSpan.FromSeconds(10)); | |
var result = bucket.Query(query); | |
foreach (var row in result.Hits) | |
{ | |
Console.WriteLine(row.Id); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment