James Moger
2012-03-19 73fba6ef98209406f1cf5f2ee00a9dc384b4a2fc
Display fewer content fragments for blobs
1 files modified
2 ■■■ changed files
src/com/gitblit/LuceneExecutor.java 2 ●●● patch | view | raw | blame | history
src/com/gitblit/LuceneExecutor.java
@@ -1124,7 +1124,7 @@
        Highlighter highlighter = new Highlighter(formatter, scorer);        
        highlighter.setTextFragmenter(fragmenter);
        
        String [] fragments = highlighter.getBestFragments(analyzer, "content", content, 5);
        String [] fragments = highlighter.getBestFragments(analyzer, "content", content, 3);
        if (ArrayUtils.isEmpty(fragments)) {
            if (SearchObjectType.blob  == result.type) {
                return "";