|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SearchEngine
interface for a Search Engine
Field Summary | |
---|---|
static boolean |
ALLOW_OVERWRITE
overwrite allowed |
static boolean |
DENY_OVERWRITE
overwrite denied |
Method Summary | |
---|---|
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 |
Field Detail |
---|
static final boolean ALLOW_OVERWRITE
static final boolean DENY_OVERWRITE
Method Detail |
---|
void init(Config config, Resource searchDir, LogAndSource log) throws SAXException, IOException, SearchException
config
- searchDir
- directory where the railo 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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |