| 接口 | GET /<index>/_termvectors/<id>?fields=message |
|---|---|
| 返回 | tokens(词条/位置/偏移)与 terms(词频) |
| 前提 | 字段未配置 term_vector 时会大致从 _source 重新分析,配置后可返回精确存储内容 |
示例
示例
GET /my-index/_termvectors/1?fields=message&term_statistics=true&positions=true排查搜索无命中时,对比 _analyze 的输出与 termvectors 的 terms,可以确认问题出在写入分析还是查询分析。