com.liferay.portal.search.lucene
Interface IndexAccessor

All Known Implementing Classes:
IndexAccessorImpl

public interface IndexAccessor

View Source

Author:
Bruno Farache

Method Summary
 void addDocument(org.apache.lucene.document.Document document)
           
 void close()
           
 void delete()
           
 void deleteDocuments(org.apache.lucene.index.Term term)
           
 long getCompanyId()
           
 org.apache.lucene.store.Directory getLuceneDir()
           
 void updateDocument(org.apache.lucene.index.Term term, org.apache.lucene.document.Document document)
           
 

Method Detail

addDocument

void addDocument(org.apache.lucene.document.Document document)
                 throws java.io.IOException
Throws:
java.io.IOException

close

void close()

delete

void delete()

deleteDocuments

void deleteDocuments(org.apache.lucene.index.Term term)
                     throws java.io.IOException
Throws:
java.io.IOException

getCompanyId

long getCompanyId()

getLuceneDir

org.apache.lucene.store.Directory getLuceneDir()

updateDocument

void updateDocument(org.apache.lucene.index.Term term,
                    org.apache.lucene.document.Document document)
                    throws java.io.IOException
Throws:
java.io.IOException