pull request #11: change the default of hl.phraseLimit to 5000

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1555367 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2014-01-04 16:43:32 +00:00
parent 2140f4368a
commit 0fb9f03de6
3 changed files with 6 additions and 1 deletions

View File

@ -261,6 +261,9 @@ Other Changes
* SOLR-5590: Upgrade HttpClient/HttpComponents to 4.3.x.
(Karl Wright via Shawn Heisey)
* pull request #11: change the default of hl.phraseLimit to 5000.
(Michael Della Bitta via Robert Muir)
================== 4.6.1 ==================
Versions of Major Components

View File

@ -399,7 +399,7 @@ public class DefaultSolrHighlighter extends SolrHighlighter implements PluginInf
params.getBool( HighlightParams.USE_PHRASE_HIGHLIGHTER, true ),
// FVH cannot process hl.requireFieldMatch parameter per-field basis
params.getBool( HighlightParams.FIELD_MATCH, false ) );
fvh.setPhraseLimit(params.getInt(HighlightParams.PHRASE_LIMIT, Integer.MAX_VALUE));
fvh.setPhraseLimit(params.getInt(HighlightParams.PHRASE_LIMIT, SolrHighlighter.DEFAULT_PHRASE_LIMIT));
FieldQuery fieldQuery = fvh.getFieldQuery( query, searcher.getIndexReader() );
// Highlight each document

View File

@ -34,6 +34,8 @@ import org.apache.solr.util.SolrPluginUtils;
public abstract class SolrHighlighter
{
public static int DEFAULT_PHRASE_LIMIT = 5000;
public static Logger log = LoggerFactory.getLogger(SolrHighlighter.class);
@Deprecated