Thanks for your prompt reply!
I used script/console to find and create new records on the model, so
it seems to be alright.
Here's the source of my model:
class Share < ActiveRecord::Base
belongs_to :user
define_index do
indexes title
indexes description
has created_at
has active
end
end
Also, here's the end of the configuration file:
index share_core
{
source = share_core_0
path = /Users/galen/Sites/sa/db/sphinx/development/share_core
morphology = stem_en
charset_type = utf-8
}
index share
{
type = distributed
local = share_core
}
Just to make sure it wasn't an issue with Sphinx I reconfigured,
remade and reinstalled it.
Is there a specific Sphinx version that works best? I'm on the 0.9.8.1
stable.
Is there a way to force TS to check my model?
Thanks for your attention!
Galen
On Apr 21, 8:24 am, Pat Allan <[email protected]> wrote:
> Hi Galen
>
> Sphinx is fine with one record or one million, so that shouldn't be
> the problem. For some reason though, it's not picking up the fact that
> you've indexed the model.
>
> If you fire up script/console and invoke the model itself, are there
> any errors? Because if Rails (and thus Thinking Sphinx) can't load the
> model, that'd be why it's not indexing (and if it's not indexing, it's
> not going to start the daemon either). You don't need to run the tasks
> with sudo either - best not to, to avoid any permissions issues.
>
> Cheers
>
> --
> Pat
>
> On 21/04/2009, at 1:08 AM, Galen wrote:
>
>
>
> > Hi, first post here.
>
> > The rake files don't seem to be indexing. I've searched around but
> > can't figure anything out.
>
> > Here's what I've got so far:
>
> > I've installed Sphinx on OS X, with a flag pointing it to the mysql
> > installation.
> > Then I installed thinking_sphinx via git as per the instructions on
> >http://ts.freelancing-gods.com/usage.html. I'm on Rails 2.3.2 so I
> > used the script/plugin install method.
>
> > I wrote my define_index on my model as such:
>
> > define_index do
> > indexes title
> > indexes description
>
> > has created_at
> > has active
>
> > end
>
> > Then ran the rakes (I ran them with sudo and without):
>
> > $ sudo rake thinking_sphinx:index
> > (in /Users/galen/Sites/sa)
> > Generating Configuration to /Users/galen/Sites/sa/config/
> > development.sphinx.conf
> > indexer --config /Users/galen/Sites/sa/config/development.sphinx.conf
> > --all
>
> > $ sudo rake thinking_sphinx:start
> > (in /Users/galen/Sites/sa)
> > searchd --pidfile --config /Users/galen/Sites/sa/config/
> > development.sphinx.conf
> > Failed to start searchd daemon. Check /Users/galen/Sites/sa/log/
> > searchd.log.
>
> > The log file is empty, as is db/sphinx/development.
>
> > I went through my config file, and as far as I can tell, everything is
> > set correctly. I'll attach it if you think it's especially relevant.
>
> > One maybe important thing: my database is super small. 8 test records,
> > as I'm just developing right now. Could that bother sphinx? Does it
> > need millions of records?
>
> > Any ideas?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---