Ah, great to know you found the solution :)

--  
Pat

On 12/06/2009, at 4:54 PM, agibralter wrote:

>
> ok reporting back from the sphinx forums: 
> http://www.sphinxsearch.com/forum/view.html?id=3734
>
> This is what I ended up with: "Ah, that's actually what I ended up
> doing: (query => split on whitespace => join with ' | ') with ext2 +
> SPH_RANK_BM25 makes for a very nice google-suggest-style ajax
> autocomplete." That's what I was trying to get at before:
>
> Model.search(
>  query.split(/\s+/).join(' | '),
>  :with => { ... },
>  :match_mode => :extended2,
>  :rank_mode => :bm25,
>  :page => 1,
>  :per_page => 10
> )
>
> That way the query, "Do you like flowers?," produces results like
> this:
> - Do you like flowers?
> - Do you give flowers as gifts?
> - Are flowers beautiful?
> - Do you like cheese?
> - Do you swim?
> ...
>
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Thinking Sphinx" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/thinking-sphinx?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to