I think the issue here is min_infix_len is 2 - and you're wanting a match on K.
I'm going to guess that Sphinx doesn't match any infixes of single letters
(because it doesn't store them), but will match words that are 'K' - but I'm
guessing there aren't many of them :)
How does it go with min_infix_len set to 1?
--
Pat
On 15/04/2010, at 11:12 AM, gmoniey wrote:
> For some reason, when I use spaces in my search term, no results are
> returned. I'm assuming that I am specifying the search term
> incorrectly, but I can't figure out how it should be. Here are some
> examples:
>
> Movie.search('Lion K') # no results
> Movie.search('LionK') # returned the correct record
> Movie.search('Lion K', :star => true) # no results
> Movie.search('LionK', :star => true) # no results
>
> I am using a bit of an older version of thinking-sphinx: 1.2.11, and
> sphinx 0.9.8.1 and my sphinx.yml looks like:
>
> development:
> enable_star: 1
> min_infix_len: 2
> morphology: stem_en
>
> and the define_index looks like:
>
> define_index do
> indexes :name, :sortable => true
>
> has :deleted
> set_property :delta => true
> end
>
> It all seems very simple, so I can't seem to figure out whats going
> wrong. Any ideas? Thanks.
>
> --
> 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.