|
|||||||||||
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
This object handles access to Lucene indexes
Constructor Summary | |
IndexHelper()
Constructor for the IndexHelper object |
Method Summary | |
void |
close()
Close the writer |
void |
create(java.lang.String name,
org.apache.lucene.analysis.Analyzer analyzer)
Create the index (writer) |
int |
delete(org.apache.lucene.index.Term term)
Delete a document from the index |
protected void |
finalize()
|
java.lang.String |
getIndexName()
Returns the name of the index |
org.apache.lucene.search.IndexSearcher |
getSearcher()
Returns the IndexSearcher for this index |
void |
open()
Open the writer |
void |
setAnalyzer(org.apache.lucene.analysis.Analyzer a)
Sets the analyzer attribute of the IndexHelper object |
void |
setIndexName(java.lang.String name)
Sets the indexName attribute of the IndexHelper object |
int |
size()
Return the amount of documents in the index when writing to it. |
void |
write(org.apache.lucene.document.Document document)
Write a Lucene Document to the index |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public IndexHelper()
Method Detail |
public void setAnalyzer(org.apache.lucene.analysis.Analyzer a)
a
- The new analyzer valuepublic void setIndexName(java.lang.String name)
name
- The new indexName valuepublic java.lang.String getIndexName()
public void create(java.lang.String name, org.apache.lucene.analysis.Analyzer analyzer)
name
- analyzer
- public void open()
public void close()
public void write(org.apache.lucene.document.Document document)
document
- Lucene Documentpublic int size()
public org.apache.lucene.search.IndexSearcher getSearcher()
public int delete(org.apache.lucene.index.Term term)
term
- A Lucene Term describing the document to delete
protected void finalize() throws java.lang.Throwable
java.lang.Throwable
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |