|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.mmapps.modules.lucenesearch.IndexHelper net.sf.mmapps.modules.lucenesearch.SearchIndex
This object represents the root of the Lucene index, it holds all the tables defined for indexing
Constructor Summary | |
SearchIndex()
|
Method Summary | |
void |
addTable(SourceTable table)
Add a Table object to this object |
protected void |
collectAll(org.mmbase.bridge.Cloud cloud)
Collects all tables |
java.util.Collection |
getAllFields()
|
org.apache.lucene.analysis.Analyzer |
getAnalyzer()
Getter for the Analyzer in use in the Index |
java.util.Collection |
getFulltextFields()
|
java.lang.String |
getIndex()
Getter for the full name of the Index |
java.lang.String |
getName()
Getter for the name of the Index |
java.lang.String |
getPath()
Getter for the path used to get to the Index |
SourceTable |
getTableByName(java.lang.String name)
Find a table by name in the list of tables attatched to this index |
boolean |
nodeLocalChanged(java.lang.String machine,
java.lang.String number,
java.lang.String builder,
java.lang.String ctype)
|
boolean |
nodeRemoteChanged(java.lang.String machine,
java.lang.String number,
java.lang.String builder,
java.lang.String ctype)
|
void |
setAnalyzerClass(java.lang.String className)
Sets the Analyzer Class |
void |
setName(java.lang.String indexName)
Setter for the name of the Index |
void |
setPath(java.lang.String path)
Set the path to the Index |
Methods inherited from class net.sf.mmapps.modules.lucenesearch.IndexHelper |
close, create, delete, finalize, getIndexName, getSearcher, open, setAnalyzer, setIndexName, size, write |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SearchIndex()
Method Detail |
protected void collectAll(org.mmbase.bridge.Cloud cloud)
cloud
- MMBase cloud to use for indexingpublic java.util.Collection getAllFields()
public java.util.Collection getFulltextFields()
public void setName(java.lang.String indexName)
indexName
- public java.lang.String getName()
public java.lang.String getIndex()
public void addTable(SourceTable table)
table
- SourceTable objectpublic SourceTable getTableByName(java.lang.String name)
name
- Name of the builder/table wer're looking for
public void setAnalyzerClass(java.lang.String className) throws java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.ClassNotFoundException
className
- the full qualified name of the analyzer class
java.lang.InstantiationException
- when the analyzer class can not be instanciated
java.lang.IllegalAccessException
- when the analyzer class may not be instanciated
java.lang.ClassNotFoundException
- when the analyzer class is not availablepublic org.apache.lucene.analysis.Analyzer getAnalyzer()
public java.lang.String getPath()
public void setPath(java.lang.String path)
path
- The path to set.public boolean nodeRemoteChanged(java.lang.String machine, java.lang.String number, java.lang.String builder, java.lang.String ctype)
nodeRemoteChanged
in interface org.mmbase.module.core.MMBaseObserver
public boolean nodeLocalChanged(java.lang.String machine, java.lang.String number, java.lang.String builder, java.lang.String ctype)
nodeLocalChanged
in interface org.mmbase.module.core.MMBaseObserver
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |