Skip to content

Commit

Permalink
Upgrade to latest Lucene.
Browse files Browse the repository at this point in the history
This includes some security fixes.
  • Loading branch information
kaicode committed Nov 30, 2018
1 parent 7ffaee1 commit 4187b94
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<java.version>1.8</java.version>
<lucene.version>5.5.2</lucene.version>
<lucene.version>7.5.0</lucene.version>
</properties>

<dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ private ConceptIdResults getConceptIdResults(Query query, int offset, int limit)
final int fetchLimit = limit == -1 ? Integer.MAX_VALUE : limit + offset;
final TopDocs topDocs = indexSearcher.search(query, fetchLimit);
final ScoreDoc[] scoreDocs = topDocs.scoreDocs;
int total = topDocs.totalHits;
int total = (int) topDocs.totalHits;
List<Long> conceptIds = new LongArrayList();
for (int a = offset; a < scoreDocs.length; a++) {
String conceptId = getConceptId(scoreDocs[a]);
Expand All @@ -209,7 +209,7 @@ private ConceptResults getConceptResults(Query query, int offset, int limit) thr
new SortedNumericSortField(ConceptFieldNames.FSN_LENGTH, SortField.Type.INT)));

final ScoreDoc[] scoreDocs = topDocs.scoreDocs;
int total = topDocs.totalHits;
int total = (int) topDocs.totalHits;
List<ConceptResult> concepts = new ArrayList<>();
Map<String, ConceptResult> conceptsMap = new HashMap<>();
for (int a = offset; a < scoreDocs.length; a++) {
Expand Down

0 comments on commit 4187b94

Please sign in to comment.