lumis.search
Class SearcherFactory
java.lang.Object
lumis.search.SearcherFactory
public class SearcherFactory
- extends Object
Creates instances of concrete Searcher
implementations.
- Since:
- 4.0.4
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SearcherFactory
public SearcherFactory()
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 filesearcherId
- searcher identifier in search config file
- Returns:
Searcher
instance
- Throws:
PortalException
- Since:
- 4.0.4
Lumisportal 4.1.0.071221 - Copyright © 2001-2007, Lumis. All Rights Reserved.