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

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -