railo.runtime.search.lucene2
Class LuceneSearchEngine

java.lang.Object
  extended by railo.runtime.search.SearchEngineSupport
      extended by railo.runtime.search.lucene2.LuceneSearchEngine
All Implemented Interfaces:
SearchEngine

public final class LuceneSearchEngine
extends SearchEngineSupport


Field Summary
 
Fields inherited from interface railo.runtime.search.SearchEngine
ALLOW_OVERWRITE, DENY_OVERWRITE
 
Constructor Summary
LuceneSearchEngine()
           
 
Method Summary
 SearchCollection _createCollection(String name, Resource path, String language)
          Creates a new Collection, will be invoked by createCollection
 SearchCollection _readCollection(String name, Resource path, String language, DateTime lastUpdate, DateTime created)
          read in a existing collection
 void _removeCollection(SearchCollection collection)
          removes a Collection from the storage
 String getDisplayName()
           
 
Methods inherited from class railo.runtime.search.SearchEngineSupport
createCollection, getCollectionByName, getCollectionsAsQuery, getDirectory, getIndexElement, getLogger, init
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LuceneSearchEngine

public LuceneSearchEngine()
Method Detail

_createCollection

public SearchCollection _createCollection(String name,
                                          Resource path,
                                          String language)
                                   throws SearchException
Description copied from class: SearchEngineSupport
Creates a new Collection, will be invoked by createCollection

Parameters:
name - The Name of the Collection
path - the path to store
language - The language of the collection
Returns:
New SearchCollection
Throws:
SearchException

_removeCollection

public void _removeCollection(SearchCollection collection)
                       throws SearchException
Description copied from class: SearchEngineSupport
removes a Collection from the storage

Parameters:
collection - Collection to remove
Throws:
SearchException

_readCollection

public SearchCollection _readCollection(String name,
                                        Resource path,
                                        String language,
                                        DateTime lastUpdate,
                                        DateTime created)
                                 throws SearchException
Description copied from class: SearchEngineSupport
read in a existing collection

Returns:
SearchCollection
Throws:
SearchException

getDisplayName

public String getDisplayName()
Specified by:
getDisplayName in interface SearchEngine
Specified by:
getDisplayName in class SearchEngineSupport
Returns:
returns the Name of the search engine to display in admin


Copyright © 2012 Railo