matching criterion for search

Hello,
Is there a way to get what was the matching criterion for a search result? For example, if I search for 'painting', is it possible to know which of the item fields matched the word ?

Thanks,
HM.

You currently can't do that.

The queries Omeka uses for searching don't currently return any data about "where" the matches occurred, only which Items matched.

Depending on your needs, you might be able to simulate something like this, by separately searching for matches on the PHP side when rendering the results, but that will be limited to whatever you're already displaying (or to a fairly slow loop over all the Item's data).

There's also quite a bit of complication introduced by using the other search options beyond the simple search.