0

I'm using Laravel Scout with TNTSearch. Is there any way to ascertain which fields (array keys on the toSearchableArray() method) have been matched when a result is returned by the search method?

Karl Hill
  • 12,937
  • 5
  • 58
  • 95
rhoward
  • 183
  • 2
  • 15

1 Answers1

0

Since TNTSearch is field agnostic it isn't possible to know which field was matched.

Nenad
  • 3,438
  • 3
  • 28
  • 36
  • Sad :( They could put a reference to the full length token to each sub-token, so the reference would be there – btx Jul 12 '23 at 17:44