elasticsearch-sql
elasticsearch-sql copied to clipboard
请问一下关于copy_to的高亮检索
GET /test_copy/_search { "query": { "match": { "@all": "hello" } }, "highlight": { "pre_tags": [ "" ], "post_tags": [ "" ], "require_field_match": "false", "fields": { "": {} } } } 这样的dsl语言高亮怎么在sql中体现呢,"require_field_match": "false", "fields": { "": {} 这两个参数主要是怎么加进去呢,试了好多次都不行。
https://github.com/NLPchina/elasticsearch-sql/wiki/Highlight
这个wiki我看了,这两个参数对应哪两个体现呢?描述的有点不清楚我感觉。
可以看下这个testcase https://github.com/NLPchina/elasticsearch-sql/blob/322391942c050949b6c722e4855f48d44b50e174/src/test/java/org/nlpcn/es4sql/QueryTest.java#L927