avoid "ThinkingSphinx::SphinxError: no enabled local indexes to search"

594 views
Skip to first unread message

agibralter

unread,
Jan 6, 2011, 1:25:14 PM1/6/11
to Thinking Sphinx
Is there any way to avoid the "ThinkingSphinx::SphinxError: no enabled
local indexes to search" exceptions when I start searchd without
indexing first? I have a deployment process that starts the initial
indexing asynchronously, but I was hoping to just have TS return empty
searches until the `rake ts:in` task is complete, at which point
searchd will rotate in the fresh indexes... right now I'm getting
"ThinkingSphinx::SphinxError: no enabled local indexes to search" for
every page I visit during the first 3 minutes after deployment,
regardless of whether or not that page's action contains a call to
TS.search.

Pat Allan

unread,
Jan 7, 2011, 9:43:23 PM1/7/11
to thinkin...@googlegroups.com
Hi Aaron

I'm a little surprised that this error is cropping up on every page request - can you send through a stack trace?

--
Pat

> --
> You received this message because you are subscribed to the Google Groups "Thinking Sphinx" group.
> To post to this group, send email to thinkin...@googlegroups.com.
> To unsubscribe from this group, send email to thinking-sphi...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/thinking-sphinx?hl=en.
>

Aaron Gibralter

unread,
Jan 10, 2011, 7:22:44 PM1/10/11
to thinkin...@googlegroups.com
Hi Pat,

Sorry for the delay--you're completely right--it's only on pages that touch (update) models that have associated sphinx indexes with deltas.

Best,
Aaron

Pat Allan

unread,
Jan 12, 2011, 11:56:52 PM1/12/11
to thinkin...@googlegroups.com
Hi Aaron

Give the latest TS a try (1.4.2 or 2.0.2), this should hopefully be fine now (I'm ignoring these errors for object updates).

Cheers

--
Pat

Aaron Gibralter

unread,
Jan 18, 2011, 7:30:56 PM1/18/11
to thinkin...@googlegroups.com
Awesome, thank you!
Reply all
Reply to author
Forward
0 new messages