com.liferay.portal.search.lucene
Interface IndexAccessor
- All Known Implementing Classes:
- IndexAccessorImpl
public interface IndexAccessor
- Author:
- Bruno Farache, Shuyang Zhou
DEFAULT_LAST_GENERATION
static final long DEFAULT_LAST_GENERATION
- See Also:
- Constant Field Values
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
dumpIndex
void dumpIndex(java.io.OutputStream outputStream)
throws java.io.IOException
- Throws:
java.io.IOException
enableDumpIndex
void enableDumpIndex()
getCompanyId
long getCompanyId()
getLastGeneration
long getLastGeneration()
getLuceneDir
org.apache.lucene.store.Directory getLuceneDir()
loadIndex
void loadIndex(java.io.InputStream inputStream)
throws java.io.IOException
- Throws:
java.io.IOException
updateDocument
void updateDocument(org.apache.lucene.index.Term term,
org.apache.lucene.document.Document document)
throws java.io.IOException
- Throws:
java.io.IOException