I have indexed refBook of materials:
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?