com.basistech.rlp.lucene
Class RLPAnalyzerDispatcher

java.lang.Object
  extended by com.basistech.rlp.lucene.RLPAnalyzerDispatcher

public class RLPAnalyzerDispatcher
extends Object

Utility class to create an appropriate RLP based Analyzer for the given language.
NOTE: This class is primarily for the analyzer demo programs. It may not be suitable for general use.


Method Summary
static Analyzer createAnalyzer(String langCode)
          Calls the default constructor of the Analyzer named RLPXxAnalyzer for the given language code xx.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createAnalyzer

public static Analyzer createAnalyzer(String langCode)
Calls the default constructor of the Analyzer named RLPXxAnalyzer for the given language code xx. If no such Analyzer is found, then it calls the generic RLPAnalyzer.

Parameters:
langCode - The two letter ISO language code. Only first two letters are inspected, so that "en_US" can also select the English Analyzer.
Returns:
The newly instantiated Analyzer.


Copyright © 2007-2008 Basis Technology Corporation. All Rights Reserved.