Query Matching Number for Multiple Documents

TLDR Kian asked if they could get the number of matched queries even if multiple matches occurred in one document. Kishore Nallan clarified that this is not possible due to storage and response size considerations.

Photo of Kian
Tue, 03 Jan 2023 11:17:31 UTC

Hi All, is it possible to get the number of matched query in the result even if there are multiple of them on a single document? let’s say I have search for ‘dog’ and one document has it once and the other document has it twice, can I get the number of matched found in return as 3 instead of 2 (number of documents)? haven’t seen it in the documentation. Thanks

Photo of Kishore Nallan
Kishore Nallan
Tue, 03 Jan 2023 11:20:07 UTC

This is not possible. We don't expose such fine grain matching information in the response because it will be too expensive to store and send in the response on large datasets.

Photo of Kian
Tue, 03 Jan 2023 11:20:36 UTC

Thank you Kishore, Make sense