Hi,
I'm planning on doing a search with a lot of keywords. I'm rather new to elasticsearch and the way I would do it would be:
GET /my_index/my_type/_search
{
"query": {
"bool": {
"should": [
{ "match": {
"title": {
"query": "superKeyword1 superKeyword2", "boost": 2
}
}
},
{ "match": {
"content": { "keyword1 keyword2 [...] keyword1000"}
}
},
]
}
}
}
My question is: Is this the right way for doing such a query with 1000+ keywords (especially in regard to the performances)?
One use case could be: I have a contact list of 1000 people with first name, last name and email. I want to search my documents for the ones that potentially mention people in my contact list