001
014
015 package com.liferay.portal.search.lucene;
016
017 import java.io.IOException;
018
019 import org.apache.lucene.document.Document;
020 import org.apache.lucene.index.Term;
021 import org.apache.lucene.store.Directory;
022
023
026 public interface IndexAccessor {
027
028 public void addDocument(Document document) throws IOException;
029
030 public void close();
031
032 public void delete() ;
033
034 public void deleteDocuments(Term term) throws IOException;
035
036 public long getCompanyId();
037
038 public Directory getLuceneDir();
039
040 public void updateDocument(Term term, Document document) throws IOException;
041
042 }