Hello! I am really struggling to get highlight working in ES 2.3.4
-
I do not have any specific schema (mappings)
-
I do have minimal data amout, as well my query is the simpliest
-
This is my "search" bash script which I execute:
#!/bin/bash
indexName="idx"
dataType="data"curl -XGET 'http://localhost:9200/'$indexName'/'$dataType'/_search?pretty=true' -d '{
"query" : {
"term": {"_all" : "bbb"}
},
"highlight" : {
"fields" : {
"title": {},
"content": {}
}
}
}'echo "Search completed!"
-
And below is a result of execution - hits are shown but no highlight field!
What am I doing wrong? should be something easy here...