Treat BooleanQuery as an immutable Query

Description

BooleanQuery has been used traditionally like this:

But now the no-arguments constructor is deprecated, and adding clauses to the instance is deprecated too.

All our code needs to be updated to use org.apache.lucene.search.BooleanQuery.Builder instead, as in Lucene 6 all queries become immutable. BooleanQuery is used in many areas, including tests.

Activity

Sanne GrinoveroOctober 5, 2017 at 1:49 PM

No problem, we'll ignore it. Deleting comments requires super-privileges to reconfigure the whole system so we only do that in extreme cases.

IsenOctober 4, 2017 at 8:07 AM

Sorry commented on the wrong thread... please delete the last comment

IsenOctober 4, 2017 at 8:06 AM

When running with lucene >= 6.0.0 (till the lastest 7.0.0)

Deprecated Lucene method has been remove since Lucene-core 6.0.0
It says,

Documentation

Sanne GrinoveroMay 23, 2016 at 10:21 AM

Actually fixed during 5.6.0.Beta1

Fixed

Details

Assignee

Reporter

Sprint

Priority

Created April 8, 2016 at 12:27 PM
Updated October 5, 2017 at 1:49 PM
Resolved May 23, 2016 at 10:21 AM