lumis.search
Class SearcherFactory

Package class diagram package SearcherFactory
java.lang.Object
  extended by lumis.search.SearcherFactory

public class SearcherFactory
extends Object

Creates instances of concrete Searcher implementations.

Since:
4.0.4

Constructor Summary
SearcherFactory()
           
 
Method Summary
static Searcher getSearcher(String searchEngineId)
          Creates an instance of the default Searcher class for the specified search engine.
static Searcher getSearcher(String searchEngineId, String searcherId)
          Creates an instance of the Searcher class for the specified search engine and searcher.
The class is determined by a searcher config node in search config file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SearcherFactory

public SearcherFactory()
Method Detail

getSearcher

public static Searcher getSearcher(String searchEngineId)
                            throws PortalException
Creates an instance of the default Searcher class for the specified search engine. The class is determined by a searcher config node in search config file. The specified search engine determines which searcher config node will be used.

Parameters:
searchEngineId - search engine identifier in search config file
Returns:
Searcher instance
Throws:
PortalException
Since:
4.0.4

getSearcher

public static Searcher getSearcher(String searchEngineId,
                                   String searcherId)
                            throws PortalException
Creates an instance of the Searcher class for the specified search engine and searcher.
The class is determined by a searcher config node in search config file. The specified search engine and searcher determine which searcher config node will be used.

Parameters:
searchEngineId - search engine identifier in search config file
searcherId - searcher identifier in search config file
Returns:
Searcher instance
Throws:
PortalException
Since:
4.0.4


Lumisportal  6.2.0.120405 - Copyright © 2006–2012 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.