Make sure you set your match mode to 'any' - believe the default is to 'all'

User.search 'joe', :match_mode => :any

brez

On Wed, Jan 7, 2009 at 1:28 AM, Thibaut Barrère
<[email protected]>wrote:

>
> Hi Christian,
>
> thanks for your reply.
>
> > The "clean" way to support tags would probably rely on multi-valued
> attributes [1].
>
> Is it something that is supported by TS itself ? (I presume yes after
> reading the front page, but can't find more examples - are there
> examples somewhere ? (I found something more or less related here:
>
> http://groups.google.com/group/thinking-sphinx/browse_thread/thread/921b4ca4e27feb4c/46d2ce49a262ae06
> )
>
> > Ignoring this, and assuming your current data model, you should note
> > that Sphinx is a fulltext search engine. If your tags do not contain
> > spaces themselves, spaces would be a good separator. I think a format
> > such as "tag_1 tag_2 ... tag_N" would meet your needs.
>
> that could do the trick too, yes. Thanks for the hint!
>
> -- Thibaut
> >
>

--~--~---------~--~----~------------~-------~--~----~
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