mirror of https://github.com/apache/lucene.git
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:
parent
2140f4368a
commit
0fb9f03de6
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue