Count snippeted attributes / matched words

Is there a way to count the number of matched words in an attribute inside a hit. If there is a result with the users query, i want to display how much results of this word are on the found page.

I don’t find any info to this in the raw hits array, but maybe there is another way to extract this info?

Thanks for your help in advance!

I’m using the vue-instantsearch package.

Sorry, when snippeting we no longer have the data on how many times a certain word occurs in a record. You’ll have to put something like “read more on the page” without a specific number

And before snippeting? It was just a thought to use snippeting in some way to get this number.

sorry, what I meant is that snippeting doesn’t really make a difference. The only way you would be able to get a full hit is by using highlight, and snippeting yourself, and counting the number of matches unfortunately