Skip to content

Commit 5cdfd57

Browse files
committed
Store QueryBuilder.T for every Genre
1 parent 4766031 commit 5cdfd57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

opengrok-indexer/src/main/java/org/opengrok/indexer/analysis/AnalyzerGuru.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,7 @@ public void populateDocument(Document doc, File file, String path,
626626

627627
if (fa != null) {
628628
AbstractAnalyzer.Genre g = fa.getGenre();
629-
if (g == AbstractAnalyzer.Genre.PLAIN || g == AbstractAnalyzer.Genre.XREFABLE || g == AbstractAnalyzer.Genre.HTML) {
629+
if (g != null) {
630630
doc.add(new Field(QueryBuilder.T, g.typeName(), string_ft_stored_nanalyzed_norms));
631631
}
632632
fa.analyze(doc, StreamSource.fromFile(file), xrefOut);

0 commit comments

Comments
 (0)