Liferay 6.1.2-ce-ga3

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
 void addDocument(org.apache.lucene.document.Document document)
           
 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 loadIndex(InputStream inputStream)
           
 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

addDocument

void addDocument(org.apache.lucene.document.Document document)
                 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()

loadIndex

void loadIndex(InputStream inputStream)
               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.1.2-ce-ga3