The below code doesn't seem to match the document for some reason. Same
query when run directly using REST API works. Am I doing something wrong in
the code?

queryString="fields.field1:value1";

searchResponse = client.prepareSearch()
.setQuery(QueryBuilders.queryString(queryString)).execute()
.actionGet();

Doc that I expect to match
'{
  "namespace": "ns1",
  "id": "3",
  "fastId": "f1",
  "version": 1393443298027,
  "lang": "en",
  "opType": "create",
  "fields": {
    "field2": "value2",
    "field1": "value1"
  },
  "arrayFields": {}
}'

-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/CAOT3TWoSGTpNQpHBUUNpa0qQr0X8rm7pZXoqxYqcb-349xkrmA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to