I don't know any workaround that weights one word more than the other... the only way I know to get OR logic between the two terms is to search like this:
Model.search "keyword | (@field value)", :match_mode => :extended Not ideal, but at least it's a step in the right direction. -- Pat On 26/11/2009, at 8:18 AM, pmlarocque wrote: > found a workaround, still I would like to know if there a decent > solution ? > > > On Nov 25, 2:52 pm, pmlarocque <[email protected]> wrote: >> Hello, >> >> Can't find an example for what I am trying to do. >> >> Let say : >> >> Model.search "keyword", :conditions => { :field => 'value' } >> >> what I want is all the models that match my conditions, but the one >> containing my keyword should come first because of the weight I >> defined. >> >> Actually I am only getting the models matching my conditions + the >> keyword. >> >> Thanks >> >> pml > > -- > > 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 > . > > -- 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.
