jcolibri.method.precycle
Class LuceneIndexCreator

java.lang.Object
  extended by jcolibri.method.precycle.LuceneIndexCreator

public class LuceneIndexCreator
extends java.lang.Object

Creates a Lucene index with the text contained in some attributes of a case

Version:
1.0
Author:
Juan A. Recio-Garcia
See Also:
LuceneIndex

Constructor Summary
LuceneIndexCreator()
           
 
Method Summary
static LuceneIndex createLuceneIndex(CBRCaseBase casebase)
          Creates a Lucene Index with the text contained in some attributes.
static LuceneIndex createLuceneIndex(CBRCaseBase casebase, java.util.Collection<Attribute> fields)
          Creates a Lucene Index with the text contained in some attributes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LuceneIndexCreator

public LuceneIndexCreator()
Method Detail

createLuceneIndex

public static LuceneIndex createLuceneIndex(CBRCaseBase casebase,
                                            java.util.Collection<Attribute> fields)
Creates a Lucene Index with the text contained in some attributes. The type of that attributes must be "Text". This method creates a LuceneDocument for each case, and adds a new field for each attribute (recived as parameter). The name and content of the Lucene document field is the name and content of the attribute.


createLuceneIndex

public static LuceneIndex createLuceneIndex(CBRCaseBase casebase)
Creates a Lucene Index with the text contained in some attributes. The type of that attributes must be "Text". This method creates a LuceneDocument for each case, and adds a new field for each attribute (recived as parameter). The name and content of the Lucene document field is the name and content of the attribute.


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