Hi Pat,
Right now i have tried like this also but results are same as
previous (i.e :phrase)
Profile.search(params[:search][:keyword1],
:match_mode => :extended,
:without_ids =>
@nonsearchable_profiles,
:per_page => 10000
)
On Jun 28, 4:15 pm, Pat Allan <[email protected]> wrote:
> Just to confirm - does the following not work?
>
> Profile.search('American Indian', :match_mode => :phrase)
>
> What about:
>
> Profile.search('"American Indian"', :match_mode => :extended)
>
> --
> Pat
>
> On 28/06/2010, at 9:12 PM, Arun wrote:
>
>
>
>
>
> > Hi Pat,
> > My search request is like this
> > Profile.search('American Indian')
> > It has to search only Exact words only "American Indian" but
> > results is coming for "Indian","American"
> > Any suggestions ???
>
> > On Jun 28, 4:02 pm, Pat Allan <[email protected]> wrote:
> >> Hi Arun
>
> >> Can you give us an example of the search request you're making in your
> >> Rails app?
>
> >> --
> >> Pat
>
> >> On 28/06/2010, at 8:58 PM, Arun wrote:
>
> >>> Hi Jim,
> >>> I need to exact match only not as a partial. Even though i given
> >>> as :match_mode=> phrase.
> >>> And i given in the Sphinx.yml like this also :
> >>> # enable_star: false
> >>> # min_infix_len: 0
> >>> # min_prefix_len: 0.
> >>> I dont need any wild card search ,but it is behaving like wild card
> >>> search.
> >>> Again i am mentioning here ,i need to search exact keywords only(i.e
> >>> American Indian) ,keywords should not get break
>
> >>> On Jun 28, 12:14 pm, Jim Ruther Nill <[email protected]> wrote:
> >>>> Hi Arun,
>
> >>>> If you are trying to search for American or Indian, you can try
>
> >>>> Model.search 'American | Indian', :match_mode => :boolean
>
> >>>> On Mon, Jun 28, 2010 at 2:56 PM, Arun <[email protected]> wrote:
> >>>>> Hi,
> >>>>> I have the keyword like this "American Indian" But it is retrieving
> >>>>> the result related to "American " and "Indian " very rare case ,i have
> >>>>> given :match mode => Phrase but no use,Any suggestions are welcome.
> >>>>> Thanks in Advance
>
> >>>>> --
> >>>>> 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]<thinking-sphinx%2Bunsubscribe@
> >>>>> googlegroups.com>
> >>>>> .
> >>>>> For more options, visit this group at
> >>>>>http://groups.google.com/group/thinking-sphinx?hl=en.
>
> >>>> --
> >>>> -------------------------------------------------------------
> >>>> visit my blog athttp://jimlabs.heroku.com
>
> >>> --
> >>> 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
> >>> athttp://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
> > athttp://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.