Running 0.90.0 GA, I have been unable to get the fields parameter to work
in the es-head plugin or firefox RESTClient, although it seems to work from
curl using a slightly different syntax:
curl -XGET "http://myinstance:9200/myindex/mytype/_search?pretty" -d '
{"fields": ["my.field.to.show"]}, "query" : { "term" :{
"my.field.search":"something"}}}'
This returns results with a "fields" : { "my.field.to.show"...} result.
The same query in the es-head plugin won't validate, but this will,
although it only returns _source and no fields value:
{
"fields": [
"my.field.to.show"
],
"query": {
"term": {
"my.field.to.search": "something"
}
}
}
The original query (that works) yields "JSON.parse: unexpected
non-whitespace character after JSON data" in ES Search.
Same query in RESTClient fails to return a fields object.
Any ideas?
--
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 elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.