Hi
I have two models Node and Page:
Node:
has_many :pages
define_index do
indexes pages.full_text, :as => :page_full_text
end
Page:
define_index do
indexes full_text
end
rake ts:rebuild gives:
Sphinx 0.9.9-release (r2117)
Copyright (c) 2001-2009, Andrew Aksyonoff
using config file '/app/config/development.sphinx.conf'...
indexing index 'node_core'...
collected 3372 docs, 0.6 MB
sorted 0.1 Mhits, 100.0% done
total 3372 docs, 583715 bytes
total 4.128 sec, 141401 bytes/sec, 816.84 docs/sec
distributed index 'node' can not be directly indexed; skipping.
indexing index 'page_core'...
collected 396818 docs, 170.0 MB
sorted 28.3 Mhits, 100.0% done
total 396818 docs, 169999994 bytes
total 19.671 sec, 8641882 bytes/sec, 20172.08 docs/sec
distributed index 'page' can not be directly indexed; skipping.
total 4 reads, 0.168 sec, 20796.6 kb/call avg, 42.2 msec/call avg
total 225 writes, 0.592 sec, 988.0 kb/call avg, 2.6 msec/call avg
Started successfully (pid 32448).
But in console I get:
>> Page.search_count 'Guernica'
=> 131
>> Node.search_count 'Guernica'
=> 0
TIA,
Yury
--
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.