Hi Adrian
When sources don't appear in the index file, it's usually because
there's a syntax error in the model. In this case, the set_property
call needs to be inside the define_index block.
Cheers
--
Pat
On 11/04/2009, at 12:55 AM, migrating_from_ultrasphinx wrote:
>
> Hello! I'm migrating an application from Ultrasphinx to Thinking
> Sphinx. I've installed the plugin, rake ts:config, and it says it
> generated the development.sphinx.conf file.
>
> I have one model set up to index, with the following code in the model
> rb file:
>
> set_property :delta => true
> define_index do
> indexes part_number, :sortable => true
> has created_at, updated_at
> end
>
> The development.sphinx.conf file looks like this after running
> ts:config:
>
> indexer
> {
> }
>
> searchd
> {
> address = 127.0.0.1
> port = 3312
> log = /Library/myapp/log/searchd.log
> query_log = /Library/myapp/log/searchd.query.log
> pid_file = /Library/myapp/log/searchd.development.pid
> }
>
>
> There are no sources. Please help me figure out what I am missing.
>
> I did see a post from someone who copied and pasted the model text
> from Pat's example on the TS site, then typed it by hand when it
> didn't work, which then got him some results. I've tried the same
> thing already to no avail.
>
>
> >
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---