Concrete subclasses of IndexReader are usually constructed with a call to
/// one of the static open()
methods, e.g. {@link #Open(String)}.
///
For efficiency, in this API documents are often referred to via /// document numbers, non-negative integers which each name a unique /// document in the index. These document numbers are ephemeral--they may change /// as documents are added to and deleted from an index. Clients should thus not /// rely on a given document having the same number between sessions. ///
An IndexReader can be opened on a directory for which an IndexWriter is /// opened already, but it cannot be used to delete documents from the index then. ///
true
if the index is optimized; false
otherwise
/// true
if an index exists at the specified directory.
/// If the directory does not exist or if there is no index in it.
/// false
is returned.
/// true
if an index exists; false
otherwise
/// true
if an index exists at the specified directory.
/// If the directory does not exist or if there is no index in it.
/// true
if an index exists; false
otherwise
/// true
if an index exists at the specified directory.
/// If the directory does not exist or if there is no index in it.
/// true
if an index exists; false
otherwise
/// n
th
/// Document
in this index.
/// n
th position. The {@link Lucene.Net.Documents.FieldSelector}
/// may be used to determine what {@link Lucene.Net.Documents.Field}s to load and how they should be loaded.
///
/// NOTE: If this Reader (more specifically, the underlying {@link FieldsReader} is closed before the lazy {@link Lucene.Net.Documents.Field} is
/// loaded an exception may be thrown. If you want the value of a lazy {@link Lucene.Net.Documents.Field} to be available after closing you must
/// explicitly load it or fetch the Document again with a new loader.
///
///
/// n
th position
///
/// The {@link Lucene.Net.Documents.FieldSelector} to use to determine what Fields should be loaded on the Document. May be null, in which case all Fields will be loaded.
///
/// t
. term
. For each document, the document number, the frequency of
/// the term in that document is also provided, for use in search scoring.
/// Thus, this method implements the mapping:
/// The enumeration is ordered by document number. Each document number /// is greater than all that precede it in the enumeration. ///
term
. For each document, in addition to the document number
/// and frequency of the term in that document, a list of all of the ordinal
/// positions of the term in the document is available. Thus, this method
/// implements the mapping:
///
/// This positional information faciliates phrase and proximity searching. ///
The enumeration is ordered by document number. Each document number is /// greater than all that precede it in the enumeration. ///
docNum
. Once a document is
/// deleted it will not appear in TermDocs or TermPostitions enumerations.
/// Attempts to read its field with the {@link #document}
/// method will result in an error. The presence of this document may still be
/// reflected in the {@link #docFreq} statistic, though
/// this will be corrected eventually as the index is further modified.
/// docNum
.
/// Applications should call {@link #DeleteDocument(int)} or {@link #DeleteDocuments(Term)}.
/// term
indexed.
/// This is useful if one uses a document field to hold a unique ID string for
/// the document. Then to delete such a document, one merely constructs a
/// term with the appropriate field and the unique ID string as its text and
/// passes it to this method.
/// See {@link #DeleteDocument(int)} for information about when this deletion will
/// become effective.
/// true
iff the index in the named directory is
/// currently locked.
/// true
iff the index in the named directory is
/// currently locked.
/// /// Caution: this should only be used by failure recovery code, /// when it is known that no other process nor thread is in fact /// currently accessing this index. ///