문제

I have a full text search engine built on elastic search. I need to find the top phrases in the engine. This would typically be named entities in the text indexed. How can this be done?

도움이 되었습니까?

해결책

I would facet against a field to discover the most common text, phrases or words (depending on your index settings) are that appear within Elasticsearch' Inverted Index.

Sample Facet

{
  "size": 0,
  "query": {
    "match_all": {}
  },
  "facets": {
    "tag": {
      "terms": {
        "field": "firstname",
        "size": 6
      }
    }
  }
}
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top