Tuning queries

Hey gang is there anyone that can help me with an Elasticsearch query? I'm trying to make the query more efficient by returning only unique hits.

My query is structured like this currently:

{
   "query": { 
    "bool": { 
      "must": [ { 
        "match": { "docId": "${q//\./}" } 
       } ] 
    } 
  } 
}

This will return many documents that match this ID which is great, the problem is sometimes there are duplicate payloads (because of the way data is sent to ES) and I want to be able to filter the duplicates out so im only pulling back unique json objects/arrays documents

Any help would be greatly appreciated

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