Class AssertingIndexSearcher
Helper class that adds some extra checks to ensure correct usage of Lucene.Net.Search.IndexSearcher and Lucene.Net.Search.Weight.
Inheritance
System.Object
Lucene.Net.Search.IndexSearcher
AssertingIndexSearcher
Inherited Members
Lucene.Net.Search.IndexSearcher.m_readerContext
Lucene.Net.Search.IndexSearcher.m_leafContexts
Lucene.Net.Search.IndexSearcher.m_leafSlices
Lucene.Net.Search.IndexSearcher.DefaultSimilarity
Lucene.Net.Search.IndexSearcher.Slices(System.Collections.Generic.IList<Lucene.Net.Index.AtomicReaderContext>)
Lucene.Net.Search.IndexSearcher.IndexReader
Lucene.Net.Search.IndexSearcher.Doc(System.Int32)
Lucene.Net.Search.IndexSearcher.Doc(System.Int32, Lucene.Net.Index.StoredFieldVisitor)
Lucene.Net.Search.IndexSearcher.Doc(System.Int32, System.Collections.Generic.ISet<System.String>)
Lucene.Net.Search.IndexSearcher.Document(System.Int32, System.Collections.Generic.ISet<System.String>)
Lucene.Net.Search.IndexSearcher.Similarity
Lucene.Net.Search.IndexSearcher.SearchAfter(Lucene.Net.Search.ScoreDoc, Lucene.Net.Search.Query, System.Int32)
Lucene.Net.Search.IndexSearcher.SearchAfter(Lucene.Net.Search.ScoreDoc, Lucene.Net.Search.Query, Lucene.Net.Search.Filter, System.Int32)
Lucene.Net.Search.IndexSearcher.Search(Lucene.Net.Search.Query, System.Int32)
Lucene.Net.Search.IndexSearcher.Search(Lucene.Net.Search.Query, Lucene.Net.Search.Filter, System.Int32)
Lucene.Net.Search.IndexSearcher.Search(Lucene.Net.Search.Query, Lucene.Net.Search.Filter, Lucene.Net.Search.ICollector)
Lucene.Net.Search.IndexSearcher.Search(Lucene.Net.Search.Query, Lucene.Net.Search.ICollector)
Lucene.Net.Search.IndexSearcher.Search(Lucene.Net.Search.Query, Lucene.Net.Search.Filter, System.Int32, Lucene.Net.Search.Sort)
Lucene.Net.Search.IndexSearcher.Search(Lucene.Net.Search.Query, Lucene.Net.Search.Filter, System.Int32, Lucene.Net.Search.Sort, System.Boolean, System.Boolean)
Lucene.Net.Search.IndexSearcher.SearchAfter(Lucene.Net.Search.ScoreDoc, Lucene.Net.Search.Query, Lucene.Net.Search.Filter, System.Int32, Lucene.Net.Search.Sort)
Lucene.Net.Search.IndexSearcher.Search(Lucene.Net.Search.Query, System.Int32, Lucene.Net.Search.Sort)
Lucene.Net.Search.IndexSearcher.SearchAfter(Lucene.Net.Search.ScoreDoc, Lucene.Net.Search.Query, System.Int32, Lucene.Net.Search.Sort)
Lucene.Net.Search.IndexSearcher.SearchAfter(Lucene.Net.Search.ScoreDoc, Lucene.Net.Search.Query, Lucene.Net.Search.Filter, System.Int32, Lucene.Net.Search.Sort, System.Boolean, System.Boolean)
Lucene.Net.Search.IndexSearcher.Search(Lucene.Net.Search.Weight, Lucene.Net.Search.ScoreDoc, System.Int32)
Lucene.Net.Search.IndexSearcher.Search(System.Collections.Generic.IList<Lucene.Net.Index.AtomicReaderContext>, Lucene.Net.Search.Weight, Lucene.Net.Search.ScoreDoc, System.Int32)
Lucene.Net.Search.IndexSearcher.Search(Lucene.Net.Search.Weight, System.Int32, Lucene.Net.Search.Sort, System.Boolean, System.Boolean)
Lucene.Net.Search.IndexSearcher.Search(Lucene.Net.Search.Weight, Lucene.Net.Search.FieldDoc, System.Int32, Lucene.Net.Search.Sort, System.Boolean, System.Boolean, System.Boolean)
Lucene.Net.Search.IndexSearcher.Search(System.Collections.Generic.IList<Lucene.Net.Index.AtomicReaderContext>, Lucene.Net.Search.Weight, Lucene.Net.Search.FieldDoc, System.Int32, Lucene.Net.Search.Sort, System.Boolean, System.Boolean, System.Boolean)
Lucene.Net.Search.IndexSearcher.Explain(Lucene.Net.Search.Query, System.Int32)
Lucene.Net.Search.IndexSearcher.Explain(Lucene.Net.Search.Weight, System.Int32)
Lucene.Net.Search.IndexSearcher.TopReaderContext
Lucene.Net.Search.IndexSearcher.TermStatistics(Lucene.Net.Index.Term, Lucene.Net.Index.TermContext)
Lucene.Net.Search.IndexSearcher.CollectionStatistics(System.String)
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Lucene.Net.Search
Assembly: Lucene.Net.TestFramework.dll
Syntax
public class AssertingIndexSearcher : IndexSearcher
Constructors
| Improve this Doc View SourceAssertingIndexSearcher(Random, IndexReader)
Declaration
public AssertingIndexSearcher(Random random, IndexReader r)
Parameters
Type | Name | Description |
---|---|---|
System.Random | random | |
Lucene.Net.Index.IndexReader | r |
AssertingIndexSearcher(Random, IndexReader, TaskScheduler)
Declaration
public AssertingIndexSearcher(Random random, IndexReader r, TaskScheduler ex)
Parameters
Type | Name | Description |
---|---|---|
System.Random | random | |
Lucene.Net.Index.IndexReader | r | |
System.Threading.Tasks.TaskScheduler | ex |
AssertingIndexSearcher(Random, IndexReaderContext)
Declaration
public AssertingIndexSearcher(Random random, IndexReaderContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Random | random | |
Lucene.Net.Index.IndexReaderContext | context |
AssertingIndexSearcher(Random, IndexReaderContext, TaskScheduler)
Declaration
public AssertingIndexSearcher(Random random, IndexReaderContext context, TaskScheduler ex)
Parameters
Type | Name | Description |
---|---|---|
System.Random | random | |
Lucene.Net.Index.IndexReaderContext | context | |
System.Threading.Tasks.TaskScheduler | ex |
Methods
| Improve this Doc View SourceCreateNormalizedWeight(Query)
Ensures, that the returned Lucene.Net.Search.Weight is not normalized again, which may produce wrong scores.
Declaration
public override Weight CreateNormalizedWeight(Query query)
Parameters
Type | Name | Description |
---|---|---|
Lucene.Net.Search.Query | query |
Returns
Type | Description |
---|---|
Lucene.Net.Search.Weight |
Overrides
Lucene.Net.Search.IndexSearcher.CreateNormalizedWeight(Lucene.Net.Search.Query)
|
Improve this Doc
View Source
Rewrite(Query)
Declaration
public override Query Rewrite(Query original)
Parameters
Type | Name | Description |
---|---|---|
Lucene.Net.Search.Query | original |
Returns
Type | Description |
---|---|
Lucene.Net.Search.Query |
Overrides
Lucene.Net.Search.IndexSearcher.Rewrite(Lucene.Net.Search.Query)
|
Improve this Doc
View Source
Search(IList<AtomicReaderContext>, Weight, ICollector)
Declaration
protected override void Search(IList<AtomicReaderContext> leaves, Weight weight, ICollector collector)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IList<Lucene.Net.Index.AtomicReaderContext> | leaves | |
Lucene.Net.Search.Weight | weight | |
Lucene.Net.Search.ICollector | collector |
Overrides
Lucene.Net.Search.IndexSearcher.Search(System.Collections.Generic.IList<Lucene.Net.Index.AtomicReaderContext>, Lucene.Net.Search.Weight, Lucene.Net.Search.ICollector)
|
Improve this Doc
View Source
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
Lucene.Net.Search.IndexSearcher.ToString()
|
Improve this Doc
View Source
WrapFilter(Query, Filter)
Declaration
protected override Query WrapFilter(Query query, Filter filter)
Parameters
Type | Name | Description |
---|---|---|
Lucene.Net.Search.Query | query | |
Lucene.Net.Search.Filter | filter |
Returns
Type | Description |
---|---|
Lucene.Net.Search.Query |
Overrides
Lucene.Net.Search.IndexSearcher.WrapFilter(Lucene.Net.Search.Query, Lucene.Net.Search.Filter)