>> it is probably worth thinking about what to 
>> set the :default_field and :all_fields parameters to. 

Hi Dave,

Thanks for pointing this out.

Neville

-----Original Message-----

PS: This might be a good time to mention that if you have an index with
a lot of fields like this, it is probably worth thinking about what to
set the :default_field and :all_fields parameters to.
:all_fields is what "*:#{query}" expands to. It doesn't necessarily have
to be all fields in the index. Usually you only want "*" to expand to
all text fields, not actually all fields. For example, you'd probably
want date fields to be excluded. And I've only just fixed this so it
will work when you use a Ferret::Index::Index object.
Previously the QueryParser had all fields in the index added to the
:all_fields parameter. Now that only happens if :all_fields isn't set
explicitly.
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk

Reply via email to