Search in multiple fields with highlighting

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.?

I have found a solution

But i have another issue with highlights. Is there any way to get other fields along with the highlights..

highlights contains only the matched content.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.