org.compass.core
Class CompassHighlighter.TextTokenizer

java.lang.Object
  extended by org.compass.core.util.Parameter
      extended by org.compass.core.CompassHighlighter.TextTokenizer
All Implemented Interfaces:
Serializable
Enclosing interface:
CompassHighlighter

public static final class CompassHighlighter.TextTokenizer
extends Parameter

Controls the way text will be tokenized in order to perform the highlight operation.

Author:
kimchy
See Also:
Serialized Form

Field Summary
static CompassHighlighter.TextTokenizer ANALYZER
          Forces tokenization of the text using the analyzer.
static CompassHighlighter.TextTokenizer AUTO
          Will use term vector if available to tokenize the text, otherwise will use analyzer.
static CompassHighlighter.TextTokenizer TERM_VECTOR
          Forces tokenization of the text using the tem vector information.
 
Method Summary
static CompassHighlighter.TextTokenizer fromString(String textTokenizer)
           
static String toString(CompassHighlighter.TextTokenizer textTokenizer)
           
 
Methods inherited from class org.compass.core.util.Parameter
readResolve, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ANALYZER

public static final CompassHighlighter.TextTokenizer ANALYZER
Forces tokenization of the text using the analyzer.


TERM_VECTOR

public static final CompassHighlighter.TextTokenizer TERM_VECTOR
Forces tokenization of the text using the tem vector information.


AUTO

public static final CompassHighlighter.TextTokenizer AUTO
Will use term vector if available to tokenize the text, otherwise will use analyzer.

Method Detail

toString

public static String toString(CompassHighlighter.TextTokenizer textTokenizer)

fromString

public static CompassHighlighter.TextTokenizer fromString(String textTokenizer)


Copyright (c) 2004-2008 The Compass Project.