ElasticSearch NEST Query -


i'm trying mimic query wrote in sense (chrome plugin) using nest in c#. can't figure out difference between 2 queries is. sense query returns records while nest query not. queries follows:

var searchresults = client.search<file>(s => s.query(q => q.term(p => p.filecontents, "int"))); 

and

{ "query": {     "term": {        "filecontents": {           "value": "int"        }     } } 

what difference between these 2 queries? why 1 return records , other not?

you can find out query nest uses following code:

var json = system.text.encoding.utf8.getstring(searchresults.requestinformation.request); 

then can compare output.


Comments

Popular posts from this blog

cakephp - simple blog with croogo -

How to group boxplot outliers in gnuplot -

bash - Performing variable substitution in a string -