Package org.h2.fulltext
Class FullTextLucene.IndexAccess
java.lang.Object
org.h2.fulltext.FullTextLucene.IndexAccess
- Enclosing class:
FullTextLucene
A wrapper for the Lucene writer and searcher.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Close the index.void
commit()
Commit the changes.(package private) org.apache.lucene.search.IndexSearcher
Start using the searcher.private void
(package private) void
returnSearcher
(org.apache.lucene.search.IndexSearcher searcher) Stop using the searcher.
-
Field Details
-
writer
final org.apache.lucene.index.IndexWriter writerThe index writer. -
searcher
private org.apache.lucene.search.IndexSearcher searcherThe index searcher.
-
-
Constructor Details
-
IndexAccess
IndexAccess(org.apache.lucene.index.IndexWriter writer) throws IOException - Throws:
IOException
-
-
Method Details
-
getSearcher
Start using the searcher.- Returns:
- the searcher
- Throws:
IOException
- on failure
-
initializeSearcher
- Throws:
IOException
-
returnSearcher
Stop using the searcher.- Parameters:
searcher
- the searcher- Throws:
IOException
- on failure
-
commit
Commit the changes.- Throws:
IOException
- on failure
-
close
Close the index.- Throws:
IOException
- on failure
-