Count results per field for query_string


Is there a way to count query_string results per matching field ?

Exemple: I have 3 documents indexed

{name="test", content="test1"}
{name="test2", content="test"}
{name="test", content="test3"}

I want when searching on "test" using query_string to get this result:

2 matchs in "name" field and 1 in "content" field

Thank you

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