如何在弹性搜索完成建议中加快对比 [英] How to hightlight matches in Elasticsearch completion suggester
问题描述
可以在完成建议查询的结果中突出显示匹配的部分吗?
Is it possible to highlight the matching parts in the results of a completion suggester query?
推荐答案
(注意:我是新的Elasticsearch和答案只依赖于我发布在下面的两个链接,但是,这些是官方的Elasticsearch / Lucene来源,他们非常清楚)
(Caveat: I am new to Elasticsearch and the answer given relies solely on the two links I posted below. However, these are official Elasticsearch / Lucene sources and they are pretty clear about it)
今天(2016-06-28),似乎不可能。
As of today (2016-06-28), it does not seem to be possible.
此功能不会在弹性搜索中实现,而在底层的Lucene中。但是,这似乎是一个复杂的问题,不久之后就不会解决。
This feature would not be implemented in Elasticsearch but in the underlying Lucene. However, it seems to be a complex issue that is not going to be resolved anytime soon.
请参阅:
https://github.com/elastic/elasticsearch/issues/8089
https://issues.apache.org / jira / browse / LUCENE-4518
这篇关于如何在弹性搜索完成建议中加快对比的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!