This class is based on the SearcherFactory abstraction which is a factory to create Searcher for a or several configured Directories. They can be local or remote. So the template doesn't need to always hold resources and you can apply different strategies for managing index resources.
Can be used within a service implementation via direct instantiation with a SearcherFactory reference, or get prepared in an application context and given to services as bean reference. Note: The SearcherFactory should always be configured as a bean in the application context, in the first case given to the service directly, in the second case to the prepared template. @author Brian McCallister @author Thierry Templier @author Alex Burgel @see org.springmodules.lucene.search.query.QueryCreator @see org.springmodules.lucene.search.factory
|
|