> Michael McCandless (JIRA) wrote:
> > I do like the idea of adding "constant score capability" to the
> > existing query classes, instead of adding new ConstantScoreXXXQuery
> > classes.
> >
> I am torn on this one. Not against the idea, but I think it should be
> consistent with ConstantScoreRangeQuery, and it seems a bit awkward to
> deprecate that at this point. Not a huge deal either way I guess though.

In my opinion, RangeQuery should also have this boolean flag for
consistency. Deprecating ConstantScoreRangeQuery is not so nice, but needed.
A workaround would be:

... RangeQuery ... {
        public Query rewrite(IndexReader r) {
                if (constantScore)
                        return new ConstantScoreRangeQuery(...).rewrite(r);
                else...
        }
}


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

Reply via email to