|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
interface for a Search Engine
| Field Summary | |
static boolean |
ALLOW_OVERWRITE
overwrite allowed |
static boolean |
DENY_OVERWRITE
overwrite denied |
| Method Summary | |
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 |
| Field Detail |
public static final boolean ALLOW_OVERWRITE
public static final boolean DENY_OVERWRITE
| Method Detail |
public void init(Config config,
Resource searchDir,
LogAndSource log)
throws org.xml.sax.SAXException,
java.io.IOException,
SearchException
config - searchDir - directory where the railo xml file islog -
java.io.IOException
org.xml.sax.SAXException
SearchException
public SearchCollection getCollectionByName(java.lang.String name)
throws SearchException
name - name of the desired collection (case insensitive)
SearchException - if no matching Collection existpublic Query getCollectionsAsQuery()
public 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 -
SearchExceptionpublic Resource getDirectory()
public LogAndSource getLogger()
public org.w3c.dom.Element getIndexElement(org.w3c.dom.Element collElement,
java.lang.String id)
collElement - XML Collection Elementid -
public java.lang.String getDisplayName()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||