I wish to pick 4 different recipes from my doc by title.
I tried something like this:
body: {
'_source': {
'includes': 4,
},
'size': 4,
'query': {
bool: {
should: [
{match: {Title: {query: 'Eggs', operator: 'OR'}}},
{match: {Title: {query: 'Apple', operator: 'OR'}}},
{match: {Title: {query: 'Onion', operator: 'OR'}}},
{match: {Title: {query: 'spaghetti', operator: 'OR'}}},
],
},
},
}
But without success. It finds only spaghetti recipe but if Im looking for onion recipes I can find them in another query so my merged query makes nosense :(