I have indexed refBook of materials:
doc/id name
1 polibutilen
5 polibutelenteraftalat
13 elastan,
23 elastodien,
25 elastodin
query could contain many materials (using OR operator): elastan, polibutilen.
(example data as unique in English, but real data in other language, so I am using for matching only landuage stemmer (ending could be variable in query).
As a result of search I hitted all this materials, but I need only best hit for each token (for query elastan, polibutilen, only docs 13,1).
Is it possible to set such a limit? If not what can be another way of implementation of such a logic in elasticsearch?