public interface LuceneIndex
Modifier and Type | Field and Description |
---|---|
static int |
SIMPLE_ANALYSIS |
static int |
STANDARD_ANALYSIS |
static int |
STOP_ANALYSIS |
static int |
WHITESPACE_ANALYSIS |
Modifier and Type | Method and Description |
---|---|
boolean |
addDoc(org.apache.lucene.document.Document doc) |
boolean |
addDocs(org.apache.lucene.document.Document[] docs) |
void |
create(java.lang.String location,
java.lang.String defaultDocField,
int analysisType) |
void |
create(java.lang.String location,
java.lang.String defaultDocField,
java.lang.String[] stopWords,
int analysisType) |
java.util.List |
getFields() |
int |
getTermFrequency(java.lang.String value) |
int |
getTermFrequency(java.lang.String field,
java.lang.String value) |
java.util.Map |
getTermLists() |
java.util.List |
listDocs() |
java.util.List |
listDocs(java.lang.String field,
java.lang.String value) |
java.util.List |
listStopWords() |
java.util.List |
listTerms() |
int |
numDocs() |
int |
numDocs(java.lang.String query) |
boolean |
removeDocs(java.lang.String field,
java.lang.String value) |
boolean |
removeDocs(java.lang.String field,
java.lang.String[] values) |
ResultDoc[] |
searchDocs(java.lang.String query) |
ResultDoc[] |
searchDocs(java.lang.String query,
java.lang.String defaultField) |
ResultDoc[] |
searchDocs(java.lang.String query,
java.lang.String defaultField,
org.apache.lucene.search.Collector collector) |
ResultDoc[] |
searchDocs(java.lang.String query,
java.lang.String defaultField,
org.apache.lucene.search.Filter filter) |
ResultDoc[] |
searchDocs(java.lang.String query,
java.lang.String defaultField,
org.apache.lucene.search.Filter filter,
org.apache.lucene.search.Collector collector) |
boolean |
tryConfig(int AnalysisType,
java.lang.String defaultDocField,
java.lang.String[] stopWords,
java.lang.String indexReader) |
boolean |
update(java.lang.String field,
java.lang.String[] values,
org.apache.lucene.document.Document[] docs) |
void |
use(java.lang.String location) |
static final int STOP_ANALYSIS
static final int SIMPLE_ANALYSIS
static final int STANDARD_ANALYSIS
static final int WHITESPACE_ANALYSIS
void use(java.lang.String location) throws InvalidIndexException, IndexInitializationException
void create(java.lang.String location, java.lang.String defaultDocField, int analysisType) throws IndexInitializationException
IndexInitializationException
void create(java.lang.String location, java.lang.String defaultDocField, java.lang.String[] stopWords, int analysisType) throws IndexInitializationException
IndexInitializationException
boolean tryConfig(int AnalysisType, java.lang.String defaultDocField, java.lang.String[] stopWords, java.lang.String indexReader)
boolean addDoc(org.apache.lucene.document.Document doc)
boolean addDocs(org.apache.lucene.document.Document[] docs)
boolean removeDocs(java.lang.String field, java.lang.String value)
boolean removeDocs(java.lang.String field, java.lang.String[] values)
boolean update(java.lang.String field, java.lang.String[] values, org.apache.lucene.document.Document[] docs)
ResultDoc[] searchDocs(java.lang.String query)
ResultDoc[] searchDocs(java.lang.String query, java.lang.String defaultField)
ResultDoc[] searchDocs(java.lang.String query, java.lang.String defaultField, org.apache.lucene.search.Filter filter)
ResultDoc[] searchDocs(java.lang.String query, java.lang.String defaultField, org.apache.lucene.search.Collector collector)
ResultDoc[] searchDocs(java.lang.String query, java.lang.String defaultField, org.apache.lucene.search.Filter filter, org.apache.lucene.search.Collector collector)
int numDocs(java.lang.String query)
int numDocs()
java.util.List listDocs()
java.util.List listDocs(java.lang.String field, java.lang.String value)
java.util.List listTerms()
java.util.List getFields()
java.util.Map getTermLists()
java.util.List listStopWords()
int getTermFrequency(java.lang.String value)
int getTermFrequency(java.lang.String field, java.lang.String value)