summaryrefslogtreecommitdiffstats
path: root/src/com/gitblit/LuceneExecutor.java
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2012-03-19 23:11:11 -0400
committerJames Moger <james.moger@gitblit.com>2012-03-19 23:11:11 -0400
commit73fba6ef98209406f1cf5f2ee00a9dc384b4a2fc (patch)
treef565e033fb1df97b9bd1b0bec2b0f5d0fd19be49 /src/com/gitblit/LuceneExecutor.java
parentff3f0e3533b48153dc7328a0733a9af2121be107 (diff)
downloadgitblit-73fba6ef98209406f1cf5f2ee00a9dc384b4a2fc.tar.gz
gitblit-73fba6ef98209406f1cf5f2ee00a9dc384b4a2fc.zip
Display fewer content fragments for blobs
Diffstat (limited to 'src/com/gitblit/LuceneExecutor.java')
-rw-r--r--src/com/gitblit/LuceneExecutor.java2
1 files changed, 1 insertions, 1 deletions
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 "";