Skip to content

Commit 70091cc

Browse files
Vladimir Kotalahornace
Vladimir Kotal
authored andcommitted
honour definition search from API when getting the hits
fixes #3748
1 parent 33eb38a commit 70091cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ public void results(int start, int end, List<Hit> ret) {
473473
new InputStreamReader(new FileInputStream(
474474
source + filename), StandardCharsets.UTF_8),
475475
null, null, null, filename, tags, nhits > 100,
476-
false, ret, scopes);
476+
getDefinition() != null, ret, scopes);
477477
} else if (AbstractAnalyzer.Genre.XREFABLE == genre && data != null && summarizer != null) {
478478
int l;
479479
/**

0 commit comments

Comments
 (0)