jcolibri.method.retrieve
Class LuceneRetrieval

java.lang.Object
  extended by jcolibri.method.retrieve.LuceneRetrieval

public class LuceneRetrieval
extends java.lang.Object

Method to retrieve cases using Lucene to compute the similarity with the query.

Author:
Juanan

Constructor Summary
LuceneRetrieval()
           
 
Method Summary
static java.util.Collection<RetrievalResult> LuceneRetrieve(CBRCaseBase casebase, CBRQuery query, LuceneIndex index, Attribute searchField, boolean normalized, int k)
          This method retrieves cases using Lucene to compute the similarity with the query.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LuceneRetrieval

public LuceneRetrieval()
Method Detail

LuceneRetrieve

public static java.util.Collection<RetrievalResult> LuceneRetrieve(CBRCaseBase casebase,
                                                                   CBRQuery query,
                                                                   LuceneIndex index,
                                                                   Attribute searchField,
                                                                   boolean normalized,
                                                                   int k)
This method retrieves cases using Lucene to compute the similarity with the query. It requires a LuceneIndex created with the LuceneIndexCreator method.

Parameters:
casebase - containing the cases
query - to compute the similarity with
index - precalculated lucene index
searchField - to invoke lucene (this attribute must be Text typed)
normalized - indicates if the results must be normalized to [0..1]
k - max number of retrieved cases
See Also:
LuceneIndexCreator


GAIA - Group for Artificial Intelligence Applications http://gaia.fdi.ucm.es