According to log, the stopword is placed on the query
I also tryed doing something like:
search "stop_word" -c config/development.sphinx.conf
And gives 0 results.
I digged a bit over sphinx forums and this has been an issue before,
but supposedly was fixed on 0.9.9.
I'm leaving my index just in case someone comes with same issue or has
solved this before:
define_index
...
set_property :min_prefix_len => 1
set_property :min_stemming_len => 3
set_property :enable_star => true
set_property :stopwords => "#{RAILS_ROOT}/config/sphinx/
stoplist.txt"
set_property :delta => ThinkingSphinx::Deltas::ResqueDelta
end
sphinx.yml
development:
morphology: libstemmer_pt
...
The provisory solution i'm using at the moment, is:
- A initializer code that reads my stoplist and creates a global
variable with all terms to remove from the query.
Not perfect, but works for now
Pedro
On Mar 10, 4:40 pm, Pat Allan <[email protected]> wrote:
> Hi Pedro
>
> What you're seeing is the expected behaviour. Thinking Sphinx doesn't have
> anything to do with the stopwords file, beyond making sure it's listed in the
> Sphinx configuration file.
>
> I'm not sure if Sphinx removes them internally (check the query log), but I
> would guess not? Not sure...
>
> --
> Pat
>
> On 09/03/2011, at 11:12 AM, Pedro Cunha wrote:
>
>
>
>
>
>
>
> > Hello there,
>
> > I'm using a stopword file and looks like when I search for those
> > stopwords, they are not stripped from the query sent to sphinx. Is
> > this the expected behaviour?
>
> > I mean, I know stopwords are not indexed at all, but shouldn't they be
> > removed from the query string automatically?
>
> > Best regards,
> > Pedro
>
> > --
> > 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.