On 11/15/05, Doug Cutting <[EMAIL PROTECTED]> wrote:
> One option is to keep a score per document,

That's what I was thinking...
  float[maxDoc[]] scores
  scores[doc] += tf(term) * idf(term) * norm(term.field)

It would be nice to keep score compatibility with the current
BooleanQuery, then that could be transparently used when the number of
terms was small.

However, one problem I don't know how to solve is
Weight.sumOfSquares(), which needs to know the idf of every single
term, before the scorer is even created!  For this reason, perhaps
score compatibility can only be kept when idf is excluded (which it
sounds like most people are in favor of for automatically expanding
term queries anyway).


-Yonik
Now hiring -- http://forms.cnet.com/slink?231706

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to