This file contains hidden or 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
{ | |
"took": 55, | |
"timed_out": false, | |
"_shards": { | |
"total": 5, | |
"successful": 5, | |
"failed": 0 | |
}, | |
"hits": { | |
"total": 2, |
This file contains hidden or 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
void Main() | |
{ | |
var pool = new SingleNodeConnectionPool(new Uri("http://localhost:9200")); | |
var connectionSettings = new ConnectionSettings(pool); | |
var client = new ElasticClient(connectionSettings); | |
/** | |
All the following produce the query json | |
This file contains hidden or 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
void Main() | |
{ | |
var client = new ElasticClient(); | |
var cancellationTokenSource = new CancellationTokenSource(); | |
client.Search<Document>(s => s | |
.Query(q => q | |
.MatchAll() | |
) | |
.RequestConfiguration(r => r |
NewerOlder