|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.apache.lucene.index.IndexReader
org.apache.lucene.index.FilterIndexReader
org.opencms.search.CmsSearchIndex.LazyContentReader
protected class CmsSearchIndex.LazyContentReader
Lucene filter index reader implementation that will ensure the OpenCms default search index fields
CmsSearchField.FIELD_CONTENT and CmsSearchField.FIELD_CONTENT_BLOB
are lazy loaded.
This is to optimize performance - these 2 fields will be rather large especially for extracted binary documents like PDF, MS Office etc. By using lazy fields the data is only read when it is actually used.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.apache.lucene.index.FilterIndexReader |
|---|
org.apache.lucene.index.FilterIndexReader.FilterTermDocs, org.apache.lucene.index.FilterIndexReader.FilterTermEnum, org.apache.lucene.index.FilterIndexReader.FilterTermPositions |
| Nested classes/interfaces inherited from class org.apache.lucene.index.IndexReader |
|---|
org.apache.lucene.index.IndexReader.FieldOption, org.apache.lucene.index.IndexReader.ReaderFinishedListener |
| Field Summary |
|---|
| Fields inherited from class org.apache.lucene.index.FilterIndexReader |
|---|
in |
| Fields inherited from class org.apache.lucene.index.IndexReader |
|---|
hasChanges, readerFinishedListeners |
| Constructor Summary | |
|---|---|
CmsSearchIndex.LazyContentReader(org.apache.lucene.index.IndexReader indexReader)
Create a new lazy content reader. |
|
| Method Summary | |
|---|---|
protected void |
doClose()
|
org.apache.lucene.document.Document |
document(int n)
|
protected org.apache.lucene.index.IndexReader |
doOpenIfChanged()
|
protected org.apache.lucene.index.IndexReader |
doOpenIfChanged(boolean openReadOnly)
|
org.apache.lucene.index.IndexReader |
reopen()
Deprecated. since Lucene 3.5 but kept for backward compatibility |
| Methods inherited from class org.apache.lucene.index.FilterIndexReader |
|---|
addReaderFinishedListener, directory, docFreq, doCommit, document, doDelete, doSetNorm, doUndeleteAll, getCommitUserData, getCoreCacheKey, getDeletesCacheKey, getFieldNames, getSequentialSubReaders, getTermFreqVector, getTermFreqVector, getTermFreqVector, getTermFreqVectors, getVersion, hasDeletions, hasNorms, isCurrent, isDeleted, isOptimized, maxDoc, norms, norms, numDocs, removeReaderFinishedListener, termDocs, termDocs, termPositions, terms, terms, toString |
| Methods inherited from class org.apache.lucene.index.IndexReader |
|---|
acquireWriteLock, clone, clone, close, commit, commit, decRef, deleteDocument, deleteDocuments, doOpenIfChanged, doOpenIfChanged, ensureOpen, flush, flush, getCommitUserData, getCurrentVersion, getIndexCommit, getRefCount, getTermInfosIndexDivisor, getUniqueTermCount, incRef, indexExists, lastModified, listCommits, main, notifyReaderFinishedListeners, numDeletedDocs, open, open, open, open, open, open, open, open, openIfChanged, openIfChanged, openIfChanged, openIfChanged, readerFinished, reopen, reopen, reopen, setNorm, setNorm, termPositions, tryIncRef, undeleteAll |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CmsSearchIndex.LazyContentReader(org.apache.lucene.index.IndexReader indexReader)
indexReader - the index reader to use this lazy content reader with| Method Detail |
|---|
public org.apache.lucene.document.Document document(int n)
throws org.apache.lucene.index.CorruptIndexException,
java.io.IOException
document in class org.apache.lucene.index.IndexReaderorg.apache.lucene.index.CorruptIndexException
java.io.IOExceptionIndexReader.document(int)
@Deprecated
public org.apache.lucene.index.IndexReader reopen()
throws org.apache.lucene.index.CorruptIndexException,
java.io.IOException
reopen in class org.apache.lucene.index.IndexReaderorg.apache.lucene.index.CorruptIndexException
java.io.IOExceptionIndexReader.reopen()
protected void doClose()
throws java.io.IOException
doClose in class org.apache.lucene.index.FilterIndexReaderjava.io.IOExceptionFilterIndexReader.doClose()
protected org.apache.lucene.index.IndexReader doOpenIfChanged()
throws org.apache.lucene.index.CorruptIndexException,
java.io.IOException
doOpenIfChanged in class org.apache.lucene.index.IndexReaderorg.apache.lucene.index.CorruptIndexException
java.io.IOExceptionIndexReader.doOpenIfChanged()
protected org.apache.lucene.index.IndexReader doOpenIfChanged(boolean openReadOnly)
throws org.apache.lucene.index.CorruptIndexException,
java.io.IOException
doOpenIfChanged in class org.apache.lucene.index.IndexReaderorg.apache.lucene.index.CorruptIndexException
java.io.IOExceptionIndexReader.doOpenIfChanged(boolean)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||