What happens if you set max_matches in your search call to something reasonably
small?
I'd also be curious to see if adding these small overly common words to the
stopwords file has an impact.
--
Pat
On 25/07/2013, at 7:58 PM, Jonathan del Strother wrote:
> Hi there,
> Our search index is getting pretty slow when searching for common words. A
> plain search that only has a few hits will complete in 3-4 milliseconds,
> while a search for "the" might take 500ms. On the latter, ThinkingSphinx
> reports:
>
> >> ThinkingSphinx::Search.search('the', limit: 1)
> Sphinx Query (477.0ms) the
> Sphinx Found 511222 results
>
> (Yes, I guess I ought to have a stop word file to strip out "the", "a", etc.
> Let's ignore that for now)
>
> For this particular search I don't care too much about the 511222 results, I
> only want a few. And I don't care too much about the order they're returned
> in. Is there a better/faster way of doing this?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Thinking Sphinx" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/thinking-sphinx.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
--
You received this message because you are subscribed to the Google Groups
"Thinking Sphinx" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/thinking-sphinx.
For more options, visit https://groups.google.com/groups/opt_out.