Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
format
  • Loading branch information
austin007008 committed Mar 18, 2024
1 parent b974ebf commit b9c0bd9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Expand Up @@ -286,6 +286,11 @@ public void next() throws IOException {
// check if the number of scores is equal to the number of offsets
boolean useScores = info.getScoreCount() == info.getTermOffsetCount();

// for testing
if (useScores) {
log.warn("**********TESTING we are using the scores TESTING**********");
}

// for each offset, gather all the terms in our range
for (int i = 0; i < info.getTermOffsetCount(); i++) {
int offset = info.getTermOffset(i);
Expand Down
Expand Up @@ -365,7 +365,7 @@ private String getExcerpt(String field, int start, int end, Range range, ArrayLi

// for testing
if (!leftLock || !rightLock) {
log.warn("*TESTING we would have retried TESTING*");
log.warn("**********TESTING we would have retried TESTING**********");
}

// if we have reached the limit of times to try, or we have the correct size excerpt
Expand Down

0 comments on commit b9c0bd9

Please sign in to comment.