在使用“ ElasticSearch的建议者”的情况下如何通过“ _termvectors”获得术语?

时间:2019-09-01 04:53:53

标签: elasticsearch term-vectors

我在ElasticSearch的索引中使用“完成建议程序”(https://www.elastic.co/guide/en/elasticsearch/reference/current/search-suggesters.html#completion-suggester)。我成功完成了索引的映射以及关键字的注册和搜索。

但是,有时我想分析解析的标记(术语)。

我将ElasticSearch的命令称为“ _termvectors api”。但是“ _termvectors api”中没有“ term_vectors”响应。(https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-termvectors.html

请告诉我如何通过“ _termvectors”获取术语?

*API:
GET suggest_example/_termvectors/1
{
  "fields": ["*"],
  "offsets": true,
  "payloads": true,
  "positions": true,
  "term_statistics": true,
  "field_statistics": true
}

*Response:
{
  "_index" : "suggest_example",
  "_type" : "_doc",
  "_id" : "1",
  "_version" : 1,
  "found" : true,
  "took" : 1,
  "term_vectors" : { }
}

"term_vectors" is none.

0 个答案:

没有答案