elastic/elasticsearch

Highlighting array field - Also return non-matching entries

Open

#7,416 建立於 2014年8月22日

在 GitHub 查看
 (31 留言) (27 反應) (0 負責人)Java (76,700 star) (25,882 fork)batch import
:Search Relevance/Highlighting>enhancementTeam:Search Relevancegood first issuehelp wanted

描述

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?

貢獻者指南