Can we search in multipe fields with hightlighs.
GET /index_name/_doc/_search
{
"_source": false,
"query": {
"bool": {
"should": [
{
"match": {
"call_data.source_id": {
"query": 123
}
}
},
{
"match": {
"presentation.sequence_id": {
"query": 2
}
}
}
]
}
},
"highlight": {
"fields": {
"call_data.source_id": {
"highlight_query": {
"match": {
"call_data.source_id": {
"query": 123
}
}
}
},
"presentation.sequence_id": {
"highlight_query": {
"match": {
"presentation.sequence_id": {
"query": 2
}
}
}
}
}
}
}
And elasticsearch is not highlighting numeric fields.. is there any solution for this.
Can any one help me on this.?