lucene - fetch all matching facets in elasticsearch query -
is there way fetch matching facets in elasticsearch query. according link given here: http://www.elasticsearch.org/guide/reference/api/search/facets/terms-facet/ possible facet n size. if want matching facets?
i tried specifying "size: 0" in facet query, didn't seem work.
here sample es query
query: { .. } facets: { company: { terms: { field: "company" size: n } } }
in short. can't.
see open issue: https://github.com/elasticsearch/elasticsearch/issues/1776
workaround: specify n large contained.
Comments
Post a Comment