Class SortingAtomicReader
An AtomicReader which supports sorting documents by a given Sort. You can use this class to sort an index as follows:
IndexWriter writer; // writer to which the sorted index will be added
DirectoryReader reader; // reader on the input index
Sort sort; // determines how the documents are sorted
AtomicReader sortingReader = SortingAtomicReader.Wrap(SlowCompositeReaderWrapper.Wrap(reader), sort);
writer.AddIndexes(reader);
reader.Dispose(); // alternatively, you can use a using block
writer.Dispose(); // alternatively, you can use a using block
@lucene.experimental
Inherited Members
Lucene.Net.Index.IndexReader.Writer
Lucene.Net.Index.IndexReader.Equals(System.Object)
Lucene.Net.Index.IndexReader.GetHashCode()
Lucene.Net.Index.IndexReader.GetTermVector(System.Int32, System.String)
Lucene.Net.Index.IndexReader.Document(System.Int32)
Lucene.Net.Index.IndexReader.Document(System.Int32, System.Collections.Generic.ISet<System.String>)
Assembly: Lucene.Net.Misc.dll
Syntax
public class SortingAtomicReader : FilterAtomicReader, IDisposable
Properties
Name | Description |
---|---|
Fields | |
LiveDocs |
Methods
Name | Description |
---|---|
Document(Int32, StoredFieldVisitor) | |
GetBinaryDocValues(String) | |
GetDocsWithField(String) | |
GetNormValues(String) | |
GetNumericDocValues(String) | |
GetSortedDocValues(String) | |
GetSortedSetDocValues(String) | |
GetTermVectors(Int32) | |
Wrap(AtomicReader, Sort) | Return a sorted view of |