Hey I'm the author of dm-sphinx-adapter.
At the moment you can:
1) Full text search all fields in the index(es) without attribute
conditions using a raw query:
Item.search(:conditions => [%q{search for me}], default_options_hash)
2) Full text search one or more fields or attributes in the index(es)
with optional :default conditions:
Item.search(:field_blah => 'value', :attribute_blah => 'value',
default_options_hash)
See the query tests and DM::A::Sphinx::Query documentation for more
examples of whats possible.
I'd like to be able to express a search across all fields *and* supply
optional attribute conditions (which sounds like what you are asking
for) but I can't see a nice way hook extra logic in before DM's query
construction and validation which happens in shared code in
Model#scoped_query.
I hope the syntax talk that's been going on will allow non DOAs more
flexibility perhaps by passing query conditions through an adapter
hook for query construction? In the meantime I'm open to suggestions,
patches and will freely hand out commit privileges if you can't
possibly wait for me to merge your pull requests :)
Cheers,
Shane.