Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects versions: None
    • Fix versions: 5.6.0.Beta1, 5.6.0.Beta2
    • Components: None
    • Labels:
      None
    • Suitable for new contributors:
      Yes, likely

      Description

      BooleanQuery has been used traditionally like this:

      BooleanQuery q = new BooleanQuery();
      q.add( otherQuery, Occur.SOMETHING );
      

      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.

        Attachments

          Activity

            People

            • Assignee:
              mincong Mincong Huang
              Reporter:
              sanne Sanne Grinovero
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: