Hi Leo,
From the README file of 3.0:
"The match mode is always extended – SphinxQL doesn’t know any other way."
That means that achieving other matching modes must be done via the
query string. You could, for instance, replace every space in your
query with a | character (vertical pipe).
Hope this helps,
- Timo Virkkala
On Wed, Feb 20, 2013 at 2:42 AM, leo <
leoy...@gmail.com> wrote:
> Hi,
> I try to do:
> MyClass.search('hello cat',:match_mode => :any,:page => params[:page]) but
> it doesn't seem to work. It still have to match all words in the query.
>
> Is match_mode no longer works in 3.0.1? If so, how to I do something
> similar? I just want to return documents that match at least one of the
> words in the query.
>
> Thanks for the help.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Thinking Sphinx" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
thinking-sphi...@googlegroups.com.
> To post to this group, send email to
thinkin...@googlegroups.com.
> Visit this group at
http://groups.google.com/group/thinking-sphinx?hl=en.
> For more options, visit
https://groups.google.com/groups/opt_out.
>
>