Hi Ian,
you are probably right that doc2 will be ranked higher as it contains
both id-fields. However, I am sure that this is not always the case in
the default TF/IDF-ranking scheme.
As you mentioned in the second part, I could add a new field holding the
number of matching fields. The Prob
I'm not sure I understand what you are asking, but if you search for
id:5 id:6 then I think doc2 will be ranked higher, because it contains
both fields.
Or are you saying you want to rank based on the number of id fields in
the document i.e. doc2 better than doc1 because 3 better than 5? If
that