it.eng.spagobi.commons.utilities.indexing
Class LuceneIndexer

java.lang.Object
  extended by it.eng.spagobi.commons.utilities.indexing.LuceneIndexer

public class LuceneIndexer
extends java.lang.Object

Indexing class.

Author:
franceschini

Constructor Summary
LuceneIndexer()
           
 
Method Summary
static void addBiobjToIndex(BIObject biObj)
          Method to add biObj input to lucene index (no metadata included)
 void createIndex(java.io.File index)
          Method called to create or increment Lucene index created over metadata binary contents.
static void updateBiobjInIndex(BIObject biObj, boolean delete)
          Method to update a lucene document based on biObj input parameter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LuceneIndexer

public LuceneIndexer()
Method Detail

addBiobjToIndex

public static void addBiobjToIndex(BIObject biObj)
Method to add biObj input to lucene index (no metadata included)

Parameters:
biObj -

updateBiobjInIndex

public static void updateBiobjInIndex(BIObject biObj,
                                      boolean delete)
Method to update a lucene document based on biObj input parameter

Parameters:
biObj -

createIndex

public void createIndex(java.io.File index)
                 throws org.apache.lucene.index.CorruptIndexException,
                        java.io.IOException
Method called to create or increment Lucene index created over metadata binary contents.

Parameters:
index - index file
create - indicating whether index is to be created or updated
Throws:
java.io.IOException
org.apache.lucene.index.CorruptIndexException