org.apache.servicemix.jbi.audit.lucene
Class LuceneIndexer
java.lang.Object
org.apache.servicemix.jbi.audit.lucene.LuceneIndexer
public class LuceneIndexer
- extends Object
Utility class for Lucene API.
- Since:
- 2.1
- Version:
- $Revision: 11366 $
- Author:
- george
|
Field Summary |
protected org.apache.lucene.store.Directory |
directory
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
directory
protected org.apache.lucene.store.Directory directory
LuceneIndexer
public LuceneIndexer()
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-2009 Apache Software Foundation. All Rights Reserved.