Liferay 6.2.0

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
abstract  org.apache.lucene.search.IndexSearcher acquireIndexSearcher()
           
abstract  void addDocument(org.apache.lucene.document.Document document)
           
abstract  void addDocuments(Collection<org.apache.lucene.document.Document> documents)
           
abstract  void close()
           
abstract  void delete()
           
abstract  void deleteDocuments(org.apache.lucene.index.Term term)
           
abstract  void dumpIndex(OutputStream outputStream)
           
abstract  long getCompanyId()
           
abstract  long getLastGeneration()
           
abstract  org.apache.lucene.store.Directory getLuceneDir()
           
abstract  void invalidate()
           
abstract  void loadIndex(InputStream inputStream)
           
abstract  void releaseIndexSearcher(org.apache.lucene.search.IndexSearcher indexSearcher)
           
abstract  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.0