Thread.State, Thread.UncaughtExceptionHandlerMAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
LuceneSearchWorker(gr.uoa.di.madgik.grs.writer.RecordWriter<gr.uoa.di.madgik.grs.record.GenericRecord> rsWriter,
org.apache.lucene.index.IndexReader reader,
QueryTerm[] terms,
org.apache.lucene.search.Hits queryHits,
int numberOfHits,
FullTextIndexType idxType,
boolean isComplete,
ArrayList<String> presentable,
LinkedHashMap<String,String> projections,
QuerySnippetTermsPair querySnippetTermsPair,
RRadaptor adaptor)
The constructor
|
| Modifier and Type | Method and Description |
|---|---|
int |
getFreq(Enumeration fields,
String termString,
int docID)
A method used to the Term frequency of the term termString for multiple
fields in the document(docID).
|
int |
getFreq(org.apache.lucene.index.Term t,
int docID)
A method used to count the occurrence frequency of a Term in a Document.
|
void |
run() |
void |
setMaximumSnippetsCount(Integer maximumSnippetsCount) |
void |
setSnippetSize(Integer snippetSize) |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldpublic LuceneSearchWorker(gr.uoa.di.madgik.grs.writer.RecordWriter<gr.uoa.di.madgik.grs.record.GenericRecord> rsWriter,
org.apache.lucene.index.IndexReader reader,
QueryTerm[] terms,
org.apache.lucene.search.Hits queryHits,
int numberOfHits,
FullTextIndexType idxType,
boolean isComplete,
ArrayList<String> presentable,
LinkedHashMap<String,String> projections,
QuerySnippetTermsPair querySnippetTermsPair,
RRadaptor adaptor)
rsWriter - -
The ResultSet writer to be used by the new LuceneSearchWorker
thread.reader - -
An IndexReader to be used in order to find Query statistics.terms - -
QueryTerms from the Lucene query.queryHits - -
The hits resulting from the Lucene querynumberOfHits - -
The number of hits from the Lucene queryidxType - -
The IndexType of the queried Index.presentable - querySnippetTermsPair - public void setSnippetSize(Integer snippetSize)
public void setMaximumSnippetsCount(Integer maximumSnippetsCount)
public int getFreq(org.apache.lucene.index.Term t,
int docID)
throws IOException
t - -
The Term of which to count the occurrences.docID - -
The Document in which to count the Term frequency.IOException - An error reading from the Lucene Index.public int getFreq(Enumeration fields, String termString, int docID) throws IOException
fields - -
The fields to include in term fequency count.termString - -
The term text of which to count the occurrences.docID - -
The document in which to count the term frequency.IOException - An error reading from the Lucene Index.Copyright © 2014. All Rights Reserved.