Query that Gives priority to different indexes

I have four indexes: A, B, C, D

Each index has a term field named "Word"

i.e.

Index A

{
  "mappings": {
    "doc": { 
      "properties": { 
        "word": {
        	"type":  "keyword"
        }
      }
    }
  }
}

Index B:

{
  "mappings": {
    "doc": { 
      "properties": { 
        "word": {
        	"type":  "keyword"
        }
      }
    }
  }
}

Index C:

{
  "mappings": {
    "doc": { 
      "properties": { 
        "word": {
        	"type":  "keyword"
        }
      }
    }
  }

}

Index D:

{
  "mappings": {
    "doc": { 
      "properties": { 
        "word": {
        	"type":  "keyword"
        }
      }
    }
  }
}

I'd like to create a query that does the following:

Give order of priority:

  1. A and B words gets top priority
  2. Only C words that do not appear in A words (no repeated words)
  3. Only D words that do not appear in A words (no repeated words)

Is this possible?

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