org.compass.core.lucene.engine.highlighter
Class DefaultLuceneHighlighterSettings
java.lang.Object
org.compass.core.lucene.engine.highlighter.DefaultLuceneHighlighterSettings
- All Implemented Interfaces:
- CompassConfigurable, LuceneHighlighterSettings
public class DefaultLuceneHighlighterSettings
- extends Object
- implements LuceneHighlighterSettings
- Author:
- kimchy
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultLuceneHighlighterSettings
public DefaultLuceneHighlighterSettings(Formatter formatter,
String fragmenterSetting,
Encoder encoder)
configure
public void configure(CompassSettings settings)
throws SearchEngineException
- Description copied from interface:
CompassConfigurable
- Configure using the given settings.
- Specified by:
configure in interface CompassConfigurable
- Parameters:
settings - The settings for the configured object
- Throws:
SearchEngineException
getEncoder
public Encoder getEncoder()
throws SearchEngineException
- Specified by:
getEncoder in interface LuceneHighlighterSettings
- Throws:
SearchEngineException
getFormatter
public Formatter getFormatter()
throws SearchEngineException
- Specified by:
getFormatter in interface LuceneHighlighterSettings
- Throws:
SearchEngineException
getFragmenter
public Fragmenter getFragmenter()
throws SearchEngineException
- Specified by:
getFragmenter in interface LuceneHighlighterSettings
- Throws:
SearchEngineException
isRewriteQuery
public boolean isRewriteQuery()
- Specified by:
isRewriteQuery in interface LuceneHighlighterSettings
setRewriteQuery
public void setRewriteQuery(boolean rewriteQuery)
isComputeIdf
public boolean isComputeIdf()
- Specified by:
isComputeIdf in interface LuceneHighlighterSettings
setComputeIdf
public void setComputeIdf(boolean computeIdf)
getMaxNumFragments
public int getMaxNumFragments()
- Specified by:
getMaxNumFragments in interface LuceneHighlighterSettings
setMaxNumFragments
public void setMaxNumFragments(int maxNumFragments)
getSeparator
public String getSeparator()
- Specified by:
getSeparator in interface LuceneHighlighterSettings
setSeparator
public void setSeparator(String separator)
getMaxBytesToAnalyze
public int getMaxBytesToAnalyze()
- Specified by:
getMaxBytesToAnalyze in interface LuceneHighlighterSettings
setMaxBytesToAnalyze
public void setMaxBytesToAnalyze(int maxBytesToAnalyze)
getTextTokenizer
public CompassHighlighter.TextTokenizer getTextTokenizer()
- Specified by:
getTextTokenizer in interface LuceneHighlighterSettings
setTextTokenizer
public void setTextTokenizer(CompassHighlighter.TextTokenizer textTokenizer)
Copyright (c) 2004-2008 The Compass Project.