org.apache.servicemix.jbi.audit.lucene
Class LuceneIndexer
java.lang.Object
org.apache.servicemix.jbi.audit.lucene.LuceneIndexer
public class LuceneIndexer
- extends java.lang.Object
Utility class for Lucene API.
- Since:
- 2.1
- Version:
- $Revision$
- Author:
- george
|
Field Summary |
protected org.apache.lucene.store.Directory |
directory
|
|
Method Summary |
void |
add(org.apache.lucene.document.Document lucDoc,
java.lang.String id)
Add object to Lucene index |
org.apache.lucene.store.Directory |
getDirectory()
|
protected void |
remove(java.lang.String id)
Drop object from Lucene index |
protected void |
remove(java.lang.String[] ids)
|
java.lang.Object |
search(LuceneCallback lc)
|
void |
setDirectory(org.apache.lucene.store.Directory directory)
|
void |
setDirectoryName(java.io.File directoryName)
|
void |
update(org.apache.lucene.document.Document lucDoc,
java.lang.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 |
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(java.io.File directoryName)
throws java.io.IOException
- Throws:
java.io.IOException
remove
protected void remove(java.lang.String id)
throws java.io.IOException
- Drop object from Lucene index
- Throws:
java.io.IOException
remove
protected void remove(java.lang.String[] ids)
throws java.io.IOException
- Throws:
java.io.IOException
add
public void add(org.apache.lucene.document.Document lucDoc,
java.lang.String id)
throws java.io.IOException
- Add object to Lucene index
- Throws:
java.io.IOException
update
public void update(org.apache.lucene.document.Document lucDoc,
java.lang.String id)
throws java.io.IOException
- called when an existing document is updated.
- Throws:
java.io.IOException
search
public java.lang.Object search(LuceneCallback lc)
throws java.io.IOException
- Throws:
java.io.IOException
Copyright © 2005-2011 FuseSource. All Rights Reserved.