|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
public interface Indexer
| Field Summary | |
|---|---|
static java.lang.String |
DOCUMENT_UID_FIELD
All lucene documents must have a unique identifier field |
static java.lang.String |
ROLE
|
| Method Summary | |
|---|---|
void |
clearIndex()
clear the index |
int |
del(java.lang.String uid)
Delete document |
org.apache.lucene.analysis.Analyzer |
getAnalyzer()
Get the lucene analyzer |
org.apache.lucene.store.Directory |
getIndex()
|
int |
getMergeFactor()
|
void |
index(org.apache.lucene.document.Document doc)
Index document (update or add if clearIndex() is called before) |
void |
optimize()
Optimize the index |
void |
setAnalyzer(org.apache.lucene.analysis.Analyzer analyzer)
Set a lucene analyzer |
void |
setIndex(org.apache.lucene.store.Directory directory)
Set the index directory |
void |
setMergeFactor(int value)
Set a merge factor value + set minMergeDocs=2*mergeFactor (see lucene docs) |
| Field Detail |
|---|
static final java.lang.String ROLE
static final java.lang.String DOCUMENT_UID_FIELD
| Method Detail |
|---|
void index(org.apache.lucene.document.Document doc)
throws IndexException
clearIndex() is called before)
doc - Document
IndexException
int del(java.lang.String uid)
throws IndexException
uid - the uid of the document
IndexException
void optimize()
throws IndexException
IndexExceptionvoid setAnalyzer(org.apache.lucene.analysis.Analyzer analyzer)
analyzer - the analazerorg.apache.lucene.analysis.Analyzer getAnalyzer()
void setMergeFactor(int value)
value - the new merge factorint getMergeFactor()
void clearIndex()
throws IndexException
IndexException
void setIndex(org.apache.lucene.store.Directory directory)
throws IndexException
directory - the index directory
IndexException
org.apache.lucene.store.Directory getIndex()
throws IndexException
IndexException
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||