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(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() |
Resource |
getDirectory() |
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
|
static final boolean ALLOW_OVERWRITE
static final boolean DENY_OVERWRITE
void init(Config config, Resource searchDir, LogAndSource log) throws SAXException, IOException, SearchException
config
- searchDir
- directory where the lucee xml file islog
- IOException
SAXException
SearchException
SearchCollection getCollectionByName(String name) throws SearchException
name
- name of the desired collection (case insensitive)SearchException
- if no matching Collection existQuery getCollectionsAsQuery()
SearchCollection createCollection(String name, Resource path, 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()
Element getIndexElement(Element collElement, String id)
collElement
- XML Collection Elementid
- String getDisplayName()
Copyright © 2015 Lucee