|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.grcomputing.opencms.search.lucene.IndexManager
This class builds and maintains the Lucene index.
Field Summary | |
static java.lang.String |
INDEX_TYPE_JSP
Defines the name of what it considers to be a jsp. |
static java.lang.String |
INDEX_TYPE_PAGE
Defines the name of what it considers to be a page. |
static java.lang.String |
INDEX_TYPE_PLAIN
Defines the name of what it considers to be a plain resource. |
static java.lang.String |
INDEX_TYPE_XML_TEMPLATE
Defines the name of what it considers to be an XML template. |
Constructor Summary | |
IndexManager(CmsObject cmso)
Constructs an IndexManager from a CmsObject. |
|
IndexManager(CmsObject cmso,
org.w3c.dom.Element registryEle)
Creates an index manager with a specific registry. |
|
IndexManager(CmsObject cmso,
java.lang.String registryPath)
Creates an index manager with a specific registry. |
Method Summary | |
void |
doIndex(boolean create)
Runs an IndexWriter over the appropriate files. |
protected void |
processDir(java.lang.String dir,
boolean traverseDir,
IndexWriter writer)
Do all the hard stuff. |
protected void |
processFile(java.lang.String file,
IndexWriter writer)
Convenience method for processFile(CmsFile, IndexWriter). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static java.lang.String INDEX_TYPE_PAGE
public static java.lang.String INDEX_TYPE_PLAIN
public static java.lang.String INDEX_TYPE_JSP
public static java.lang.String INDEX_TYPE_XML_TEMPLATE
Constructor Detail |
public IndexManager(CmsObject cmso) throws CmsException
CmsException
- if it can't get the registry.public IndexManager(CmsObject cmso, java.lang.String registryPath) throws CmsException
CmsException
- if it can't get the registry.public IndexManager(CmsObject cmso, org.w3c.dom.Element registryEle) throws CmsException
CmsException
- if it can't get the registry.Method Detail |
public void doIndex(boolean create) throws CmsException, java.io.IOException
CmsException
- if files can't be generated from CMS.
IOException
- if the Lucene engine has problems.protected void processDir(java.lang.String dir, boolean traverseDir, IndexWriter writer) throws CmsException
CmsException
protected void processFile(java.lang.String file, IndexWriter writer) throws CmsException, java.io.IOException
CmsException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |