From: James Moger Date: Tue, 20 Mar 2012 03:11:11 +0000 (-0400) Subject: Display fewer content fragments for blobs X-Git-Tag: v0.9.0~43 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=73fba6ef98209406f1cf5f2ee00a9dc384b4a2fc;p=gitblit.git Display fewer content fragments for blobs --- diff --git a/src/com/gitblit/LuceneExecutor.java b/src/com/gitblit/LuceneExecutor.java index db604a0a..29a8569d 100644 --- a/src/com/gitblit/LuceneExecutor.java +++ b/src/com/gitblit/LuceneExecutor.java @@ -1124,7 +1124,7 @@ public class LuceneExecutor implements Runnable { 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 "";