DLESE Tools
v1.6.0

org.dlese.dpc.index
Interface LuceneIndex


public interface LuceneIndex


Field Summary
static int SIMPLE_ANALYSIS
           
static int STANDARD_ANALYSIS
           
static int STOP_ANALYSIS
           
static int WHITESPACE_ANALYSIS
           
 
Method Summary
 boolean addDoc(org.apache.lucene.document.Document doc)
           
 boolean addDocs(org.apache.lucene.document.Document[] docs)
           
 void create(String location, String defaultDocField, int analysisType)
           
 void create(String location, String defaultDocField, String[] stopWords, int analysisType)
           
 List getFields()
           
 int getTermFrequency(String value)
           
 int getTermFrequency(String field, String value)
           
 Map getTermLists()
           
 List listDocs()
           
 List listDocs(String field, String value)
           
 List listStopWords()
           
 List listTerms()
           
 int numDocs()
           
 int numDocs(String query)
           
 boolean removeDocs(String field, String value)
           
 boolean removeDocs(String field, String[] values)
           
 ResultDoc[] searchDocs(String query)
           
 ResultDoc[] searchDocs(String query, String defaultField)
           
 ResultDoc[] searchDocs(String query, String defaultField, org.apache.lucene.search.Collector collector)
           
 ResultDoc[] searchDocs(String query, String defaultField, org.apache.lucene.search.Filter filter)
           
 ResultDoc[] searchDocs(String query, String defaultField, org.apache.lucene.search.Filter filter, org.apache.lucene.search.Collector collector)
           
 boolean tryConfig(int AnalysisType, String defaultDocField, String[] stopWords, String indexReader)
           
 boolean update(String field, String[] values, org.apache.lucene.document.Document[] docs)
           
 void use(String location)
           
 

Field Detail

STOP_ANALYSIS

static final int STOP_ANALYSIS
See Also:
Constant Field Values

SIMPLE_ANALYSIS

static final int SIMPLE_ANALYSIS
See Also:
Constant Field Values

STANDARD_ANALYSIS

static final int STANDARD_ANALYSIS
See Also:
Constant Field Values

WHITESPACE_ANALYSIS

static final int WHITESPACE_ANALYSIS
See Also:
Constant Field Values
Method Detail

use

void use(String location)
         throws InvalidIndexException,
                IndexInitializationException
Throws:
InvalidIndexException
IndexInitializationException

create

void create(String location,
            String defaultDocField,
            int analysisType)
            throws IndexInitializationException
Throws:
IndexInitializationException

create

void create(String location,
            String defaultDocField,
            String[] stopWords,
            int analysisType)
            throws IndexInitializationException
Throws:
IndexInitializationException

tryConfig

boolean tryConfig(int AnalysisType,
                  String defaultDocField,
                  String[] stopWords,
                  String indexReader)

addDoc

boolean addDoc(org.apache.lucene.document.Document doc)

addDocs

boolean addDocs(org.apache.lucene.document.Document[] docs)

removeDocs

boolean removeDocs(String field,
                   String value)

removeDocs

boolean removeDocs(String field,
                   String[] values)

update

boolean update(String field,
               String[] values,
               org.apache.lucene.document.Document[] docs)

searchDocs

ResultDoc[] searchDocs(String query)

searchDocs

ResultDoc[] searchDocs(String query,
                       String defaultField)

searchDocs

ResultDoc[] searchDocs(String query,
                       String defaultField,
                       org.apache.lucene.search.Filter filter)

searchDocs

ResultDoc[] searchDocs(String query,
                       String defaultField,
                       org.apache.lucene.search.Collector collector)

searchDocs

ResultDoc[] searchDocs(String query,
                       String defaultField,
                       org.apache.lucene.search.Filter filter,
                       org.apache.lucene.search.Collector collector)

numDocs

int numDocs(String query)

numDocs

int numDocs()

listDocs

List listDocs()

listDocs

List listDocs(String field,
              String value)

listTerms

List listTerms()

getFields

List getFields()

getTermLists

Map getTermLists()

listStopWords

List listStopWords()

getTermFrequency

int getTermFrequency(String value)

getTermFrequency

int getTermFrequency(String field,
                     String value)

DLESE Tools
v1.6.0