Method WrapUnderlyingReader
WrapUnderlyingReader(Random, IndexSearcher, Int32, Similarity)
Given an IndexSearcher, returns a new IndexSearcher whose IndexReader is a MultiReader containing the Reader of the original IndexSearcher, as well as several "empty" IndexReaders -- some of which will have deleted documents in them. this new IndexSearcher should behave exactly the same as the original IndexSearcher.
Declaration
public static IndexSearcher WrapUnderlyingReader(Random random, IndexSearcher s, int edge, Similarity similarity)
Parameters
Type | Name | Description |
---|---|---|
Random | random | |
IndexSearcher | s | the searcher to wrap |
System.Int32 | edge | if negative, s will be the first sub; if 0, s will be in the middle, if positive s will be the last sub |
Similarity | similarity | LUCENENET specific
Removes dependency on |
Returns
Type | Description |
---|---|
IndexSearcher |