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:
- A and B words gets top priority
- Only C words that do not appear in A words (no repeated words)
- Only D words that do not appear in A words (no repeated words)
Is this possible?