public interface SearchEngine
Modifier and Type | Field and Description |
---|---|
static boolean |
ALLOW_OVERWRITE
overwrite allowed
|
static boolean |
DENY_OVERWRITE
overwrite denied
|
Modifier and Type | Method and Description |
---|---|
SearchCollection |
createCollection(java.lang.String name,
Resource path,
java.lang.String language,
boolean allowOverwrite)
Creates a new Collection and Store it (creating always a spellindex)
|
SearchCollection |
getCollectionByName(java.lang.String name)
returns a collection by name
|
Query |
getCollectionsAsQuery() |
Resource |
getDirectory() |
java.lang.String |
getDisplayName() |
org.w3c.dom.Element |
getIndexElement(org.w3c.dom.Element collElement,
java.lang.String id)
return XML Element Matching index id
|
LogAndSource |
getLogger() |
void |
init(Config config,
Resource searchDir,
LogAndSource log)
constructor of the class
|
static final boolean ALLOW_OVERWRITE
static final boolean DENY_OVERWRITE
void init(Config config, Resource searchDir, LogAndSource log) throws org.xml.sax.SAXException, java.io.IOException, SearchException
config
- searchDir
- directory where the lucee xml file islog
- java.io.IOException
org.xml.sax.SAXException
SearchException
SearchCollection getCollectionByName(java.lang.String name) throws SearchException
name
- name of the desired collection (case insensitive)SearchException
- if no matching Collection existQuery getCollectionsAsQuery()
SearchCollection createCollection(java.lang.String name, Resource path, java.lang.String language, boolean allowOverwrite) throws SearchException
name
- The Name of the Collectionpath
- the path to storelanguage
- The language of the collectionallowOverwrite
- SearchException
Resource getDirectory()
LogAndSource getLogger()
org.w3c.dom.Element getIndexElement(org.w3c.dom.Element collElement, java.lang.String id)
collElement
- XML Collection Elementid
- java.lang.String getDisplayName()