org.opencms.search
Class CmsSearchAnalyzer

java.lang.Object
  extended by org.opencms.search.CmsSearchAnalyzer

public class CmsSearchAnalyzer
extends java.lang.Object

An analyzer class is used by Lucene to reduce the content to be indexed with trimmed endings etc.

Since:
6.0.0
Version:
$Revision: 1.14 $
Author:
Thomas Weckert

Constructor Summary
CmsSearchAnalyzer()
           
 
Method Summary
 java.lang.String getClassName()
          Returns the className.
 java.util.Locale getLocale()
          Returns the locale.
 java.lang.String getLocaleString()
          Returns the locale as a String.
 java.lang.String getStemmerAlgorithm()
          Returns the stemmer algorithm.
 void setClassName(java.lang.String className)
          Sets the class name.
 void setLocale(java.util.Locale locale)
          Sets the locale.
 void setLocaleString(java.lang.String locale)
          Sets the locale as a String.
 void setStemmerAlgorithm(java.lang.String stemmerAlgorithm)
          Sets the stemmer algorithm.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CmsSearchAnalyzer

public CmsSearchAnalyzer()
Method Detail

getClassName

public java.lang.String getClassName()
Returns the className.

Returns:
the className

getLocale

public java.util.Locale getLocale()
Returns the locale.

Returns:
the locale

getLocaleString

public java.lang.String getLocaleString()
Returns the locale as a String.

Returns:
the locale as a String
See Also:
getLocale()

getStemmerAlgorithm

public java.lang.String getStemmerAlgorithm()
Returns the stemmer algorithm.

Returns:
the stemmer algorithm

setClassName

public void setClassName(java.lang.String className)
Sets the class name.

Parameters:
className - the class name

setLocale

public void setLocale(java.util.Locale locale)
Sets the locale.

Parameters:
locale - the locale

setLocaleString

public void setLocaleString(java.lang.String locale)
Sets the locale as a String.

Parameters:
locale - the locale
See Also:
setLocale(Locale)

setStemmerAlgorithm

public void setStemmerAlgorithm(java.lang.String stemmerAlgorithm)
Sets the stemmer algorithm.

Parameters:
stemmerAlgorithm - the stemmer algorithm