Skip to content

Commit ba599c9

Browse files
author
Vladimir Kotal
authored
fix the operator (#2266)
1 parent c377202 commit ba599c9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

opengrok-indexer/src/main/java/org/opengrok/indexer/search/SearchEngine.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -436,10 +436,10 @@ public Document doc(int docId) throws IOException {
436436
}
437437

438438
/**
439-
* get results , if no search was started before, no results are returned
440-
* this method will requery if end is more than first query from search,
439+
* Get results , if no search was started before, no results are returned.
440+
* This method will requery if {@code end} is more than first query from search,
441441
* hence performance hit applies, if you want results in later pages than
442-
* number of cachePages also end has to be bigger than start !
442+
* number of cachePages. {@code end} has to be bigger than {@code start} !
443443
*
444444
* @param start start of the hit list
445445
* @param end end of the hit list
@@ -456,8 +456,8 @@ public void results(int start, int end, List<Hit> ret) {
456456

457457
ret.clear();
458458

459-
//TODO check if below fits for if end=old hits.length, or it should include it
460-
if (end > hits.length & !allCollected) {
459+
// TODO check if below fits for if end=old hits.length, or it should include it
460+
if (end > hits.length && !allCollected) {
461461
//do the requery, we want more than 5 pages
462462
collector = TopScoreDocCollector.create(totalHits);
463463
try {

0 commit comments

Comments
 (0)