------- Additional Comments From [hidden email] 2005-05-18 19:59 -------
A query returning all docs can indeed be useful on occasion, it was the subject
of some recent messages on the java-user list.
- MatchAllDocsQuery might be a better name, NullQuery could also to suggest
not matching any docs at all (which can also be useful on occasion btw.)
- The scorer uses an int for all the non deleted docs which can be
a rather high burden on memory and initialisation. This could be avoided
by using the information on deleted docs from the reader directly
in the scorer.
- The score value is a constant, and queries with this property are
currently under discussion on java-dev. This might become a special
case of the filters discussed there.