elastic/elasticsearch
Highlighting array field - Also return non-matching entries
开放
#7,416 创建于 2014年8月22日
:Search Relevance/Highlighting>enhancementTeam:Search Relevancegood first issuehelp wanted
仓库指标
- 星标
- (76,700 个星标)
- PR 合并指标
- (平均合并 2天) (30 天内合并 1,000 个 PR)
描述
I have an array field with the entries [foo, foobar, bar] and search for foo. The highlighting then returns for that field
[<em>foo</em>, <em>foo</em>bar]
I would like it to return
[<em>foo</em>, <em>foo</em>bar, bar]
I did try to set no_match_size as described on http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-request-highlighting.html but that didn't work. Is there any way to make elasticsearch behave the way I want?