Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

recoinx.clef.irs.lucene
Class CLEFLuceneAdapter.LuceneRunnable  view CLEFLuceneAdapter.LuceneRunnable download CLEFLuceneAdapter.LuceneRunnable.java

java.lang.Object
  extended byrecoin.group.ComponentRunnable
      extended byrecoinx.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.
 
Fields inherited from class recoin.group.ComponentRunnable
container, finished, support, timeStamp, worker
 
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 recoin.group.ComponentRunnable
getParentRunnable, getThreadName, isFinished, setFinished, setParentRunnable, setUp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

language

private int language
Language to use for retrieval.

See Also:
recoinx.clef.CLEFConstants
Constructor Detail

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.

Method Detail

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.