com.liferay.portal.search.lucene
Class IndexAccessorImpl
java.lang.Object
com.liferay.portal.search.lucene.IndexAccessorImpl
- All Implemented Interfaces:
- IndexAccessor
public class IndexAccessorImpl
- extends Object
- implements IndexAccessor
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IndexAccessorImpl
public IndexAccessorImpl(long companyId)
addDocument
public void addDocument(org.apache.lucene.document.Document document)
throws IOException
- Specified by:
addDocument
in interface IndexAccessor
- Throws:
IOException
close
public void close()
- Specified by:
close
in interface IndexAccessor
delete
public void delete()
- Specified by:
delete
in interface IndexAccessor
deleteDocuments
public void deleteDocuments(org.apache.lucene.index.Term term)
throws IOException
- Specified by:
deleteDocuments
in interface IndexAccessor
- Throws:
IOException
getCompanyId
public long getCompanyId()
- Specified by:
getCompanyId
in interface IndexAccessor
getLuceneDir
public org.apache.lucene.store.Directory getLuceneDir()
- Specified by:
getLuceneDir
in interface IndexAccessor
updateDocument
public void updateDocument(org.apache.lucene.index.Term term,
org.apache.lucene.document.Document document)
throws IOException
- Specified by:
updateDocument
in interface IndexAccessor
- Throws:
IOException