node-elasticsearch-client icon indicating copy to clipboard operation
node-elasticsearch-client copied to clipboard

Search Documentation

Open epicblood opened this issue 11 years ago • 1 comments

The documentation for the search function leads one to believe that

var qryObj = {
field1 : "term"
};

will search for documents that have the value "term" in the field "field1" However, this is untrue, it should be

var qryObj = {
    "query" : {
        "term" : { "field1" : "term" }
    }
};

Please update the documentation so that others don't run into simliar problems as myself.

Also, better/more documentation in general would be great.

Thanks -Epicblood

epicblood avatar Sep 21 '13 00:09 epicblood

awesome suggestions

skidxjq avatar Aug 26 '15 07:08 skidxjq