Get file name from index based on content search in index

GET football-index/_search
{
  "_source": ["file.filename"], 
  "query": {
    "match": {
      "content": "football"
    }
  },
  "highlight": {
    "fields": {
      "content": {}
    }
  }
}

@ylasri Thanks for the help.

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