>> it would seem that Neville has 48 fields in his index.
Yes, there are 48 fields.
But around 17 fields are marked as :index => :no because they are only
used as detail in the retrieved doc and not for indexing purposes.
Shouldn't that affect both the coord factor and the :all_fields
expansion ?
Kind Regards
Neville
-----Original Message-----
The coord factor is the number of clauses in a BooleanQuery that matched
over the number of clauses. It would seem that in the example, there
were 48 clauses. When you submit a query over all fields (ie.
"*:term") the query is rewritten as a boolean query with a clause for
every field in your index. So it would seem that Neville has 48 fields
in his index.
Hope that makes sense,
Dave
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