Knowing which fields match ?

3 views
Skip to first unread message

sarcos

unread,
Nov 18, 2009, 2:43:34 PM11/18/09
to Thinking Sphinx
Hello,
is there a way to know which fields is hit by the search query ?
I would like to output something like :

"You search query matched the login_name"

where "login_name" is a indexed field

TIA

Pat Allan

unread,
Nov 18, 2009, 7:09:44 PM11/18/09
to thinkin...@googlegroups.com
There's only one way, as far as I know, and that's to use the
fieldmask ranking mode:
http://freelancing-god.github.com/ts/en/searching.html#ranking
(final ranking option listed)

Mind you, this doesn't work when you have more than 32 fields, and not
sure if it'd be reliable for multi-model searching either.

--
Pat
> --
>
> You received this message because you are subscribed to the Google
> Groups "Thinking Sphinx" group.
> To post to this group, send email to thinkin...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/thinking-sphinx?hl=
> .
>
>

sarcos

unread,
Nov 18, 2009, 8:46:33 PM11/18/09
to Thinking Sphinx
thanx for quick answer, I am trying that and will be posting progress
here.
Reply all
Reply to author
Forward
0 new messages