org.opencms.search
Class CmsSearchAnalyzer

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

public class CmsSearchAnalyzer
extends Object

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

Since:
6.0.0

Constructor Summary
CmsSearchAnalyzer()
           
 
Method Summary
 String getClassName()
          Returns the className.
 Locale getLocale()
          Returns the locale.
 String getLocaleString()
          Returns the locale as a String.
 String getStemmerAlgorithm()
          Returns the stemmer algorithm.
 void setClassName(String className)
          Sets the class name.
 void setLocale(Locale locale)
          Sets the locale.
 void setLocaleString(String locale)
          Sets the locale as a String.
 void setStemmerAlgorithm(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 String getClassName()
Returns the className.

Returns:
the className

getLocale

public Locale getLocale()
Returns the locale.

Returns:
the locale

getLocaleString

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

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

getStemmerAlgorithm

public String getStemmerAlgorithm()
Returns the stemmer algorithm.

This is required only for the SnowBall analyzer, which is deprecated in Lucene and should not longer be used since all languages have special analyzers now.

Returns:
the stemmer algorithm

setClassName

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

Parameters:
className - the class name

setLocale

public void setLocale(Locale locale)
Sets the locale.

Parameters:
locale - the locale

setLocaleString

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

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

setStemmerAlgorithm

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

This is required only for the SnowBall analyzer, which is deprecated in Lucene and should not longer be used since all languages have special analyzers now.

Parameters:
stemmerAlgorithm - the stemmer algorithm