Liferay 6.2-ce-ga5

com.liferay.portal.search.lucene
Interface IndexAccessor

All Known Implementing Classes:
IndexAccessorImpl, SynchronizedIndexAccessorImpl

public interface IndexAccessor


Field Summary
static long DEFAULT_LAST_GENERATION
           
 
Method Summary
 org.apache.lucene.search.IndexSearcher acquireIndexSearcher()
           
 void addDocument(org.apache.lucene.document.Document document)
           
 void addDocuments(Collection<org.apache.lucene.document.Document> documents)
           
 void close()
           
 void delete()
           
 void deleteDocuments(org.apache.lucene.index.Term term)
           
 void dumpIndex(OutputStream outputStream)
           
 long getCompanyId()
           
 long getLastGeneration()
           
 org.apache.lucene.store.Directory getLuceneDir()
           
 void invalidate()
           
 void loadIndex(InputStream inputStream)
           
 void releaseIndexSearcher(org.apache.lucene.search.IndexSearcher indexSearcher)
           
 void updateDocument(org.apache.lucene.index.Term term, org.apache.lucene.document.Document document)
           
 

Field Detail

DEFAULT_LAST_GENERATION

static final long DEFAULT_LAST_GENERATION
See Also:
Constant Field Values
Method Detail

acquireIndexSearcher

org.apache.lucene.search.IndexSearcher acquireIndexSearcher()
                                                            throws IOException
Throws:
IOException

addDocument

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

addDocuments

void addDocuments(Collection<org.apache.lucene.document.Document> documents)
                  throws IOException
Throws:
IOException

close

void close()

delete

void delete()

deleteDocuments

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

dumpIndex

void dumpIndex(OutputStream outputStream)
               throws IOException
Throws:
IOException

getCompanyId

long getCompanyId()

getLastGeneration

long getLastGeneration()

getLuceneDir

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

invalidate

void invalidate()

loadIndex

void loadIndex(InputStream inputStream)
               throws IOException
Throws:
IOException

releaseIndexSearcher

void releaseIndexSearcher(org.apache.lucene.search.IndexSearcher indexSearcher)
                          throws IOException
Throws:
IOException

updateDocument

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

Liferay 6.2-ce-ga5