Skip to content

Commit

Permalink
when computing sub-bindings we should assume that annotation queries …
Browse files Browse the repository at this point in the history
…are leaf nodes; they contain a term query but this is an internal implementation detail which shouln't be exposed. See ##5 for more context
  • Loading branch information
greenwoodma committed May 15, 2019
1 parent 1f6b709 commit 3bdd7ae
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,12 +134,12 @@ public Binding nextHit() throws IOException {
long doc = underlyingHit.getDocumentId();
if(isInDocumentMode) {
return new Binding(query, doc, 0, engine.getIndex().getDocumentSize(doc),
underlyingHit.getContainedBindings());
null);
} else {
return new Binding(query, doc,
underlyingHit.getTermPosition(),
underlyingHit.getLength(),
underlyingHit.getContainedBindings());
null);
}
}

Expand Down

0 comments on commit 3bdd7ae

Please sign in to comment.