Class ExplanationAssertingSearcher
An Lucene.Net.Search.IndexSearcher that implicitly checks hte explanation of every match whenever it executes a search.
Inherited Members
Namespace: Lucene.Net.Search
Assembly: Lucene.Net.TestFramework.dll
Syntax
public class ExplanationAssertingSearcher : IndexSearcher
Constructors
ExplanationAssertingSearcher(IndexReader)
An Lucene.Net.Search.IndexSearcher that implicitly checks hte explanation of every match whenever it executes a search.
Declaration
public ExplanationAssertingSearcher(IndexReader r)
Parameters
Type | Name | Description |
---|---|---|
IndexReader | r |
See Also
Methods
CheckExplanations(Query)
An Lucene.Net.Search.IndexSearcher that implicitly checks hte explanation of every match whenever it executes a search.
Declaration
protected virtual void CheckExplanations(Query q)
Parameters
Type | Name | Description |
---|---|---|
Query | q |
See Also
Search(Query, Filter, ICollector)
Lower-level search API.
Collect(int) is called for every matching document.Declaration
public override void Search(Query query, Filter filter, ICollector results)
Parameters
Type | Name | Description |
---|---|---|
Query | query | To match documents |
Filter | filter | Ef non- |
ICollector | results | To receive hits |
Overrides
Exceptions
Type | Condition |
---|---|
BooleanQuery.TooManyClausesException | If a query would exceed Lucene.Net.Search.BooleanQuery.MaxClauseCount clauses. |
ArgumentNullException |
|
See Also
Search(Query, Filter, int)
Finds the top n
hits for query
, applying filter
if non-null
.
Declaration
public override TopDocs Search(Query query, Filter filter, int n)
Parameters
Type | Name | Description |
---|---|---|
Query | query | |
Filter | filter | |
int | n |
Returns
Type | Description |
---|---|
TopDocs |
Overrides
Exceptions
Type | Condition |
---|---|
BooleanQuery.TooManyClausesException | If a query would exceed Lucene.Net.Search.BooleanQuery.MaxClauseCount clauses. |
See Also
Search(Query, Filter, int, Sort)
Search implementation with arbitrary sorting. Finds
the top n
hits for query
, applying
filter
if non-null, and sorting the hits by the criteria in
sort
.
Declaration
public override TopFieldDocs Search(Query query, Filter filter, int n, Sort sort)
Parameters
Type | Name | Description |
---|---|---|
Query | query | |
Filter | filter | |
int | n | |
Sort | sort |
Returns
Type | Description |
---|---|
TopFieldDocs |
Overrides
Exceptions
Type | Condition |
---|---|
BooleanQuery.TooManyClausesException | If a query would exceed Lucene.Net.Search.BooleanQuery.MaxClauseCount clauses. |
ArgumentNullException |
|
See Also
Search(Query, ICollector)
Lower-level search API.
Collect(int) is called for every matching document.Declaration
public override void Search(Query query, ICollector results)
Parameters
Type | Name | Description |
---|---|---|
Query | query | |
ICollector | results |
Overrides
Exceptions
Type | Condition |
---|---|
BooleanQuery.TooManyClausesException | If a query would exceed Lucene.Net.Search.BooleanQuery.MaxClauseCount clauses. |
ArgumentNullException |
|