Support Center

Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Highlight

Aaron Patzer Feb 03, 2017 01:35AM +03

I've got SearchBox ElasticSearch up and running, and integrated via Jest to a Heroku Scala/Play application. Indexing is working well, and search returns hits as expected. Explanation works as well. However, I cannot get "highlight" to work.

{ "query": {
"query_string": {
"query": "content:hello"
}},
"highlight": {
"fields": {
"content": {}
}}
}

I've tried following the integration test example https://github.com/searchbox-io/Jest/blob/master/jest/src/test/java/io/searchbox/core/SearchIntegrationTest.java#L189

I've also tried using a mapping to "store": true my search fields. None of these seem to work.

Suggestions?

Post Your Public Answer

Your name (required)
Your email address (required)
Answer (required)
support@searchly.com
http://assets1.desk.com/
false
searchboxio
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
false
Invalid characters found
/customer/en/portal/articles/autocomplete