org.apache.servicemix.jbi.audit.lucene
Class LuceneIndexer

java.lang.Object
  extended by org.apache.servicemix.jbi.audit.lucene.LuceneIndexer

public class LuceneIndexer
extends Object

Utility class for Lucene API.

Since:
2.1
Version:
$Revision: 2153 $
Author:
george

Field Summary
protected  org.apache.lucene.store.Directory directory
           
 
Constructor Summary
LuceneIndexer()
           
 
Method Summary
 void add(org.apache.lucene.document.Document lucDoc, String id)
          Add object to Lucene index
 org.apache.lucene.store.Directory getDirectory()
           
protected  void remove(String id)
          Drop object from Lucene index
protected  void remove(String[] ids)
           
 Object search(LuceneCallback lc)
           
 void setDirectory(org.apache.lucene.store.Directory directory)
           
 void setDirectoryName(File directoryName)
           
 void update(org.apache.lucene.document.Document lucDoc, String id)
          called when an existing document is updated.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

directory

protected org.apache.lucene.store.Directory directory
Constructor Detail

LuceneIndexer

public LuceneIndexer()
Method Detail

getDirectory

public org.apache.lucene.store.Directory getDirectory()

setDirectory

public void setDirectory(org.apache.lucene.store.Directory directory)

setDirectoryName

public void setDirectoryName(File directoryName)
                      throws IOException
Throws:
IOException

remove

protected void remove(String id)
               throws IOException
Drop object from Lucene index

Throws:
IOException

remove

protected void remove(String[] ids)
               throws IOException
Throws:
IOException

add

public void add(org.apache.lucene.document.Document lucDoc,
                String id)
         throws IOException
Add object to Lucene index

Throws:
IOException

update

public void update(org.apache.lucene.document.Document lucDoc,
                   String id)
            throws IOException
called when an existing document is updated.

Throws:
IOException

search

public Object search(LuceneCallback lc)
              throws IOException
Throws:
IOException


Copyright © 2005-2010 The Apache Software Foundation. All Rights Reserved.