From 73fba6ef98209406f1cf5f2ee00a9dc384b4a2fc Mon Sep 17 00:00:00 2001 From: James Moger Date: Mon, 19 Mar 2012 23:11:11 -0400 Subject: [PATCH] Display fewer content fragments for blobs --- src/com/gitblit/LuceneExecutor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ""; -- 2.39.5