Skip to content

Commit

Permalink
Merge pull request #4989 from apache/nouveau-lucene-9.10.0
Browse files Browse the repository at this point in the history
nouveau: upgrade lucene to 9.10.0
  • Loading branch information
rnewson authored Feb 22, 2024
2 parents 2064f21 + ab59443 commit 29db2df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion nouveau/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ dependencies {
implementation 'io.dropwizard.metrics:metrics-jersey2'
testImplementation 'io.dropwizard:dropwizard-testing'

def luceneVersion = '9.9.2'
def luceneVersion = '9.10.0'
implementation group: 'org.apache.lucene', name: 'lucene-core', version: luceneVersion
implementation group: 'org.apache.lucene', name: 'lucene-queryparser', version: luceneVersion
implementation group: 'org.apache.lucene', name: 'lucene-analysis-common', version: luceneVersion
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
import org.apache.lucene.search.SortedSetSortField;
import org.apache.lucene.search.TermQuery;
import org.apache.lucene.search.TopDocs;
import org.apache.lucene.search.TopFieldCollector;
import org.apache.lucene.search.TopFieldCollectorManager;
import org.apache.lucene.store.Directory;
import org.apache.lucene.util.BytesRef;

Expand Down Expand Up @@ -215,7 +215,7 @@ public SearchResults doSearch(final SearchRequest request) throws IOException {
fieldDoc = null;
}

return TopFieldCollector.createSharedManager(sort, searchRequest.getLimit(), fieldDoc, 1000);
return new TopFieldCollectorManager(sort, searchRequest.getLimit(), fieldDoc, 1000, false);
}

private SortField getLastSortField(final Sort sort) {
Expand Down

0 comments on commit 29db2df

Please sign in to comment.