Extended match mode

50 views
Skip to first unread message

karantleo

unread,
Dec 24, 2009, 10:33:57 PM12/24/09
to Thinking Sphinx
I have been using Thinking Sphinx for a while in a production
application and have nothing but great things to say.

Recently my customers have been asking to add the extended match mode
functionality so that they could search with '@foo bar' type of
syntax.

From the looks of it I just add :match_mode => :extended to my search
call and it is done. I've tested it a bit and it seems that regular
searching still works the same way as it does in default :any match
mode.

Should I be concerned or aware of any major differences between :any
and :extended match modes that might negatively impact my customers
(performance, errors, etc.)? Or do I basically get :any with addition
of ability to use the extended syntax by setting match mode
to :extended? I am just a little nervous about simply changing this
setting and moving it to production, but I have not been able to find
any disadvantages. Thanks in advance for the input.

Pat Allan

unread,
Dec 25, 2009, 10:24:55 PM12/25/09
to thinkin...@googlegroups.com
I'm not using Sphinx in any popular sites, so I can't say for sure, but I wouldn't think there's any problems with using :extended match mode. Keep in mind, though, that it uses ANDs for implicit logic, instead of ORs - and so your users will find their standard searches work like :all instead of :any.

--
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.
> To unsubscribe from this group, send email to thinking-sphi...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/thinking-sphinx?hl=en.
>
>

karantleo

unread,
Dec 26, 2009, 12:57:27 PM12/26/09
to Thinking Sphinx
Pat,

Isn't :all the default thinking sphinx match mode (if no match mode is
specified)? And if so users should see no difference, right?

Anton

Pat Allan

unread,
Dec 26, 2009, 7:54:32 PM12/26/09
to thinkin...@googlegroups.com
Hi Anton

You're correct - it's just that you mentioned :any match mode, so that's what I assumed you're using. If you're using :all instead, then that's exactly how :extended behaves with no modifiers.

--
Pat

karantleo

unread,
Dec 26, 2009, 8:20:57 PM12/26/09
to Thinking Sphinx
Great. Thanks, Pat. Once again, outstanding job on thinking sphinx!
Reply all
Reply to author
Forward
0 new messages