Hi Neil

I think this is just how Sphinx behaves - I realise it's not ideal, but not 
sure if there's any way to work around it. You could try the Sphinx forum:
http://sphinxsearch.com/forum/

Sorry I can't be more helpful :|

-- 
Pat

On 19/07/2010, at 11:47 PM, NeilS wrote:

> Hi there,
> 
> I'm running TS as a gem (1.3.18) against Sphinx 0.9.9 on a Rails 2.3.5
> app.
> 
> I allow users to type in any search phrase on my site, and I pass
> their search into :match_mode => :extended.
> 
> What I'm finding odd is that exact matches on a phrase don't seem to
> be ranking above records that mention the keywords apart.
> 
> For example, I search for "foo bar", which is a precise record name in
> my data, contained in an indexed 'name' field with a field weight of
> 25. (I have other fields indexed, but with low field weights - either
> 2 or 1.) Both words are common in my search data.
> 
> However, the first record returned by TS is "bar something foo
> something something something".
> The second record is "something something - bar", which just happens
> to contain "foo" in its description.
> The third record is "foo something something", again with "bar" in the
> description.
> The record "foo bar" itself is result 18 of 25.
> 
> If I quote "foo bar" in my search string (i.e. perform a phrase
> search), the record is the only one returned, as you'd expect, but I'd
> have thought that, even unquoted, the exact match in a highly weighted
> field should have been first?
> 
> I realise I haven't quoted copious lines of code and configuration --
> I can do if that would be helpful -- but I wondered if anyone could
> possibly either:
> 
> 1) Tell me that my expectations are wrong
> 2) Give me any pointers for any ways I can troubleshoot this.
> 
> Many thanks for any advice you may feel able to give!
> 
> Regards,
> NeilS.
> 
> -- 
> 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.

Reply via email to