Hi,
I have a problem with facet query. The following query works without a
problem:
{"sort":[{"date":{"order":"desc"}},"_score"],"from":0,"fields":["_source"],"query":{"query_string":{"query":"test"}},"size":10,"facets":{"tags":{"terms":{"field":"tags"}},"types":{"terms":{"field":"type"}},"count":{"query":{"match_all":[]}}}}
However, when I change the order of keys in the "facets" part of the query
ElasticSearch throws an exception. For example:
{"sort":[{"date":{"order":"desc"}},"_score"],"from":0,"fields":["_source"],"query":{"query_string":{"query":"test"}},"size":10,"facets":{"tags":{"terms":{"field":"tags"}},"count":{"query":{"match_all":[]}},"types":{"terms":{"field":"type"}}}}
Am I missing something or do I have an error in the query ?
Thanks
Rafał
Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch - ElasticSearch