Skip to content
This repository was archived by the owner on Sep 4, 2019. It is now read-only.
iamazy edited this page May 7, 2019 · 2 revisions

1. elasticsearch的highlighter

elasticsearch-sql使用h#来标志字段或者短语是否高亮,自动识别普通的inner doc字段的高亮和nested字段的高亮

select * from fruit where match(h#$buyers.buyerName,'小明') and fuzzy(h#productName,'苹果') and h#desc is not null and color is not null group by terms(weight,5000),terms(category,100)  limit 0,0
Clone this wiki locally