public abstract class SearchEngineSupport extends Object implements SearchEngine
ALLOW_OVERWRITE, DENY_OVERWRITE
Constructor and Description |
---|
SearchEngineSupport() |
Modifier and Type | Method and Description |
---|---|
SearchCollection |
createCollection(String name,
Resource path,
String language,
boolean allowOverwrite)
Creates a new Collection and Store it (creating always a spellindex)
|
SearchCollection |
getCollectionByName(String name)
returns a collection by name
|
Query |
getCollectionsAsQuery() |
Config |
getConfig() |
Resource |
getDirectory() |
abstract String |
getDisplayName() |
Element |
getIndexElement(Element collElement,
String id)
return XML Element Matching index id
|
LogAndSource |
getLogger() |
void |
init(Config config,
Resource searchDir,
LogAndSource log)
constructor of the class
|
public SearchEngineSupport()
public void init(Config config, Resource searchDir, LogAndSource log) throws SAXException, IOException, SearchException
SearchEngine
init
in interface SearchEngine
searchDir
- directory where the lucee xml file isSAXException
IOException
SearchException
public final SearchCollection getCollectionByName(String name) throws SearchException
SearchEngine
getCollectionByName
in interface SearchEngine
name
- name of the desired collection (case insensitive)SearchException
- if no matching Collection existpublic final Query getCollectionsAsQuery()
getCollectionsAsQuery
in interface SearchEngine
public final SearchCollection createCollection(String name, Resource path, String language, boolean allowOverwrite) throws SearchException
SearchEngine
createCollection
in interface SearchEngine
name
- The Name of the Collectionpath
- the path to storelanguage
- The language of the collectionSearchException
public Resource getDirectory()
getDirectory
in interface SearchEngine
public LogAndSource getLogger()
getLogger
in interface SearchEngine
public Element getIndexElement(Element collElement, String id)
SearchEngine
getIndexElement
in interface SearchEngine
collElement
- XML Collection Elementpublic abstract String getDisplayName()
getDisplayName
in interface SearchEngine
Copyright © 2015 Lucee