I am using Rails 2, with thinking sphinx 1.4.3.

With this query I get 51 items: Project.find(:all, :conditions =>
{:country => 'australia'}).size
With this Sphinx search I get only 20:
Project.search("australia").size

The index in project model is:

  define_index do
    indexes name
    indexes summary
    indexes description
    indexes phone
    indexes email
    indexes website
    indexes climate_zone
    indexes city
    indexes address
    indexes state
    indexes post_code
    indexes country

    indexes posts.created_at, :as => :posts
    set_property :delta => true
  end

The output of rake thinking_sphinx:rebuild

indexing index 'project_core'...
collected 234 docs, 0.9 MB
sorted 0.1 Mhits, 100.0% done
total 234 docs, 870847 bytes
total 0.461 sec, 1887205 bytes/sec, 507.09 docs/sec
indexing index 'project_delta'...
collected 0 docs, 0.0 MB
total 0 docs, 0 bytes
total 0.005 sec, 0 bytes/sec, 0.00 docs/sec
distributed index 'project' can not be directly indexed; skipping.
indexing index 'user_core'...
collected 722 docs, 0.0 MB
sorted 0.0 Mhits, 100.0% done
total 722 docs, 34901 bytes
total 0.054 sec, 642815 bytes/sec, 13297.97 docs/sec
indexing index 'user_delta'...
collected 0 docs, 0.0 MB
total 0 docs, 0 bytes
total 0.015 sec, 0 bytes/sec, 0.00 docs/sec
distributed index 'user' can not be directly indexed; skipping.
total 10 reads, 0.004 sec, 52.1 kb/call avg, 0.4 msec/call avg
total 25 writes, 0.002 sec, 48.2 kb/call avg, 0.0 msec/call avg

Thank you

-- 
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.

Reply via email to