Skip to content

Commit

Permalink
Direct index lexical cluster was mistakenly ignoring the last tail-N …
Browse files Browse the repository at this point in the history
…batch
  • Loading branch information
ianroberts committed May 30, 2019
1 parent 58a682e commit 5214f32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mimir-core/src/main/java/gate/mimir/index/AtomicIndex.java
Original file line number Diff line number Diff line change
Expand Up @@ -521,9 +521,9 @@ protected final static Index openDirectIndexCluster(List<MG4JIndex> batches){

// prepare the lexical cluster
Index[] indexes = new Index[batches.size()];
int[] cutPoints = new int[indexes.length];
int[] cutPoints = new int[indexes.length + 1];
cutPoints[0] = 0;
String[] cutPointTerms = new String[indexes.length];
String[] cutPointTerms = new String[indexes.length + 1];
cutPointTerms[0] = longToTerm(0);
int numberOfTerms = -1;
int numberOfDocuments = -1;
Expand Down

0 comments on commit 5214f32

Please sign in to comment.