Sunday 15 February 2015

indexing - Facet for counting index and type hits in elasticsearch -


I am using the query below to find the word "developer" in a blog index ...

  http: // localhost: 9200 / blog / _search {"query": {"query_string": {"query": "developer"}}}   

user and kills 1 on posts , and I should show an aspect that looks something like this to show. .

Search Results ...
Blog Post (1)
User (3)

... Following do I do not know that a factor such as I hit count since most instances to count hits how to combine with a query; I tried to use _index to return index hits, but could not get it to work; To calculate the document type, like any type, _type gets hit in an index?

  http: // localhost : {"Field": {"field": "_type"}}}}   

Feedback

  {...} "facets": {"type": {"_type": "terms "," Missing: 0, "total": 4, "other": 0, "terms": [{"word": "user", "count": 3}, {"word": "post" "Count": 1}]}}}    

No comments:

Post a Comment