Search documents terms in provided text

Hi! I need to match a lot of tags (40k) contained as a separate documents in ES in provided query text (500 words). I need a list of matched documents and match positions in original text (if possible) as a result. This is a classification task the most. How can I achive this in ES? Is it possible? Only way I found is terms query but I didn't know if it is good to pass 500 terms to it (and I need to tokenize text somewhow before I pass it to ES).

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