|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjcolibri.method.retrieve.LuceneRetrieval
public class LuceneRetrieval
Method to retrieve cases using Lucene to compute the similarity with the query.
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 |
---|
public LuceneRetrieval()
Method Detail |
---|
public static java.util.Collection<RetrievalResult> LuceneRetrieve(CBRCaseBase casebase, CBRQuery query, LuceneIndex index, Attribute searchField, boolean normalized, int k)
casebase
- containing the casesquery
- to compute the similarity withindex
- precalculated lucene indexsearchField
- 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 casesLuceneIndexCreator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |