java.lang.Object
recoin.group.ComponentRunnable
recoinx.clef.irs.lucene.CLEFLuceneAdapter.LuceneRunnable
- All Implemented Interfaces:
- java.lang.Runnable
- Enclosing class:
- CLEFLuceneAdapter
- protected class CLEFLuceneAdapter.LuceneRunnable
- extends recoin.group.ComponentRunnable
The LuceneRunnable class implements the special behavior to query the indexes.
It behaves differently, i.e. it searches different collections, according to
the language with which it is created.
|
Field Summary |
private int |
language
Language to use for retrieval. |
|
Constructor Summary |
CLEFLuceneAdapter.LuceneRunnable(recoin.container.RetrievalContainer container,
recoin.group.ComponentSupport support,
recoin.group.ComponentRunnable runnable,
recoin.group.ComponentWorker worker,
int lang)
Creates a new LuceneRunnable with the specified RetrievalContainer,
ComponentSupport, ComponentRunnable and ComponentWorker that performs
retrieval for the specified language. |
CLEFLuceneAdapter.LuceneRunnable(recoin.container.RetrievalContainer container,
recoin.group.ComponentSupport support,
recoin.group.ComponentWorker worker,
int lang)
Creates a new LuceneRunnable with the specified RetrievalContainer,
ComponentSupport and ComponentWorker that performs retrieval for the
specified language. |
CLEFLuceneAdapter.LuceneRunnable(recoin.container.RetrievalContainer container,
recoin.group.ComponentWorker worker,
int lang)
Creates a new LuceneRunnable with the specified RetrievalContainer and
ComponentWorker that performs retrieval for the specified language. |
|
Method Summary |
void |
run()
Performs a search over indexes in a Lucene database according to the language
with which it was created. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
language
private int language
- Language to use for retrieval.
- See Also:
- recoinx.clef.CLEFConstants
CLEFLuceneAdapter.LuceneRunnable
public CLEFLuceneAdapter.LuceneRunnable(recoin.container.RetrievalContainer container,
recoin.group.ComponentWorker worker,
int lang)
- Creates a new LuceneRunnable with the specified RetrievalContainer and
ComponentWorker that performs retrieval for the specified language.
CLEFLuceneAdapter.LuceneRunnable
public CLEFLuceneAdapter.LuceneRunnable(recoin.container.RetrievalContainer container,
recoin.group.ComponentSupport support,
recoin.group.ComponentWorker worker,
int lang)
- Creates a new LuceneRunnable with the specified RetrievalContainer,
ComponentSupport and ComponentWorker that performs retrieval for the
specified language.
CLEFLuceneAdapter.LuceneRunnable
public CLEFLuceneAdapter.LuceneRunnable(recoin.container.RetrievalContainer container,
recoin.group.ComponentSupport support,
recoin.group.ComponentRunnable runnable,
recoin.group.ComponentWorker worker,
int lang)
- Creates a new LuceneRunnable with the specified RetrievalContainer,
ComponentSupport, ComponentRunnable and ComponentWorker that performs
retrieval for the specified language.
run
public void run()
- Performs a search over indexes in a Lucene database according to the language
with which it was created.
First the indexes, i.e. the collections which are
to be searched are determined. Then, for each collection, a search is performed
querying the 'title' and 'text' document fields. These two result lists are
merged according to the specified weights (titleWeight,
textWeight) for the document fields. At the end, all result lists
from different collections are merged into one CLEFResultList.