org.compass.core.lucene.engine.highlighter
Class DefaultLuceneHighlighterSettings

java.lang.Object
  extended by org.compass.core.lucene.engine.highlighter.DefaultLuceneHighlighterSettings
All Implemented Interfaces:
CompassConfigurable, LuceneHighlighterSettings

public class DefaultLuceneHighlighterSettings
extends Object
implements LuceneHighlighterSettings

Author:
kimchy

Constructor Summary
DefaultLuceneHighlighterSettings(Formatter formatter, String fragmenterSetting, Encoder encoder)
           
 
Method Summary
 void configure(CompassSettings settings)
          Configure using the given settings.
 Encoder getEncoder()
           
 Formatter getFormatter()
           
 Fragmenter getFragmenter()
           
 int getMaxBytesToAnalyze()
           
 int getMaxNumFragments()
           
 String getSeparator()
           
 CompassHighlighter.TextTokenizer getTextTokenizer()
           
 boolean isComputeIdf()
           
 boolean isRewriteQuery()
           
 void setComputeIdf(boolean computeIdf)
           
 void setMaxBytesToAnalyze(int maxBytesToAnalyze)
           
 void setMaxNumFragments(int maxNumFragments)
           
 void setRewriteQuery(boolean rewriteQuery)
           
 void setSeparator(String separator)
           
 void setTextTokenizer(CompassHighlighter.TextTokenizer textTokenizer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultLuceneHighlighterSettings

public DefaultLuceneHighlighterSettings(Formatter formatter,
                                        String fragmenterSetting,
                                        Encoder encoder)
Method Detail

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-2009 The Compass Project.