lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Trejkaz <>
Subject Fwd: Replacement for Filter-as-abstract-class in Lucene 5.4?
Date Fri, 15 Jan 2016 00:52:27 GMT
Hi all.

Filter is now deprecated, which I already knew was in the pipeline.

The docs say:

   "Use Query objects instead: when queries are wrapped in a
    ConstantScoreQuery or in a BooleanClause.Occur.FILTER clause,
    they automatically disable the score computation so the Filter
    class does not provide benefits compared to queries anymore."

That's fair enough and an easy change to do on the caller side.

The other thing we are using Filter for is the other thing it mentions
in the Javadoc:

   "Convenient base class for building queries that only perform
    matching, but no scoring. The scorer produced by such queries
    always returns 0 as score."

What is the new convenient way to implement your own queries that
don't do scoring?


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message