Skip to content

Commit

Permalink
lucene 9.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tarzanek authored and vladak committed Dec 15, 2023
1 parent 9c7d15e commit 58b740e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ Portions Copyright (c) 2018, 2020, Chris Fraire <cfraire@me.com>.
</scm>

<properties>
<lucene.version>9.8.0</lucene.version>
<lucene.version>9.9.0</lucene.version>
<mavenjavadocplugin.version>3.6.0</mavenjavadocplugin.version>
<java.version>11</java.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
*/
package org.opengrok.suggest.query.customized;

import org.apache.lucene.index.IndexReaderContext;
import org.apache.lucene.index.LeafReader;
import org.apache.lucene.index.LeafReaderContext;
import org.apache.lucene.index.PostingsEnum;
Expand Down Expand Up @@ -251,12 +250,10 @@ private static class CustomPhraseWeight extends Weight {
super(query);
this.query = query;

IndexReaderContext context = searcher.getTopReaderContext();

this.states = new TermStates[query.terms.length];
for(int i = 0; i < query.terms.length; ++i) {
Term term = query.terms[i];
this.states[i] = TermStates.build(context, term, false);
this.states[i] = TermStates.build(searcher, term, false);
}
}

Expand Down

0 comments on commit 58b740e

Please sign in to comment.