Wow. Its been awhile since this reply. I am just now getting back to
the project which brought about my question!

I have tried a few different methods to no avail, including phrase
search. Here are my commands and the resulting sphinx searches which
are generated:

Strong.search "dear love"

  [all/2/rel 1 (0,20)] [*] 'dear love'

Strong.search "'dear love'", :match_mode => :phrase

  [phr/2/rel 1 (0,20)] [*] 'dear love'

Strong.search "\"dear love\"", :match_mode => :phrase

  [phr/2/rel 1 (0,20)] [*] 'dear love'

All three of these searches returned a match on a record with "dear,
love" in the text field. Any other ideas how to get Sphinx to take
notice of the commas in my indexed fields and not return matches on
them?


On Aug 17, 8:28 pm, James Healy <[EMAIL PROTECTED]> wrote:
> sant0sk1 wrote:
> > Wondering if ThinkingSphinx has support for proximity searches so I
> > can use commas as a delimiter in my text searches. Here is a use case:
>
> > I have some objects with the following text fields:
>
> > #1) "dear, love"
> > #2) "dear love"
>
> > I need a way to match #2 and not #1 when a user searches for "dear
> > love". I was told on the Sphinx forum that this could be accomplished
> > by setting the phrase_boundary=, and phrase_boundary_step=100. Then
> > performing a proximity search like this "dear love"~50.
>
> > Is this possible with ThinkingSphinx? Do I need to change the match
> > mode from extended tophrase? Is that possible?
>
> I haven't looked into proximity searches at all, but aphrasesearch
> should be easy enough.
>
>   SomeModel.search '"dear love"', :match_mode => :phrase
>
> There was a discussion onphrasesearching a few days ago:
>
> http://groups.google.com/group/thinking-sphinx/browse_thread/thread/1...
>
> -- James Healy <jimmy-at-deefa-dot-com>  Mon, 18 Aug 2008 11:17:55 +1000

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