Section navigation

Public classSealed MultiReader

Namespace
Rowles.LeanCorpus.Search.Searcher
Assembly
Rowles.LeanCorpus.dll

Searches an immutable composition of multiple directory snapshots without merging their files.

public sealed class MultiReader : IDisposable
Inheritance
MultiReader
Implements

Public constructor MultiReader(IReadOnlyList<MMapDirectory>, IndexSearcherConfig?)

Opens one immutable searcher snapshot per directory in input order.

Public property CommitGenerations

Gets the captured commit generation for each component in input order.

Public property MaxDoc

Gets the total number of documents across component snapshots.

Public property ReaderCount

Gets the number of component snapshots in this composition.

Public method Dispose()

Disposes all component searcher snapshots.

Public method GetOrdinalMap(string, bool)

Builds an immutable global ordinal map for a sorted DocValues field across the component snapshots in input order.

Public method Search(Query, int)

Searches all component snapshots by score.

Public method Search(Query, int, params SortField[])

Searches all component snapshots using the supplied sort order.

Public method SearchAfter(ScoreDoc, Query, int, params SortField[])

Returns the next page after a result from this immutable composition.

Public method SearchWithFacets(Query, int, params string[])

Searches and merges facet counts from all component snapshots.