Highlight DSL
syamilmj opened this issue · 4 comments
syamilmj commented
ref: https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-highlighting.html
This works but it doesn't look idiomatic:
highlight do
["fields": ["title": [{}]]]
end
Am I doing it correctly?
Zatvobor commented
It looks good.
syamilmj commented
If we are not supporting enough fields in the DSL, then the snippet above is closer to sending a raw JSON payload.
I mean, look at this bit: "title": [{}]
. That is not an improvement over JSON - it's more confusing and less intuitive.
Would this still be open for improvements? I'd be happy to contribute.