Свойство | Тип | Описание | |
---|---|---|---|
EXPLAIN_SCORE_TOLERANCE_DELTA | float | ||
EXPLAIN_SCORE_TOLERANCE_MINIMUM | float |
Метод | Описание | |
---|---|---|
CheckDocIds ( string mes, int results, Lucene.Net.Search.ScoreDoc hits ) : void |
Tests that a Hits has an expected order of documents
|
|
CheckEqual ( |
||
CheckExplanations ( |
Asserts that the explanation value for every document matching a query corresponds with the true score.
|
|
CheckExplanations ( |
Asserts that the explanation value for every document matching a query corresponds with the true score. Optionally does "deep" testing of the explanation details.
|
|
CheckHitCollector ( |
Tests that a query matches the an expected set of documents using a HitCollector. Note that when using the HitCollector API, documents will be collected if they "match" regardless of what their score is.
|
|
CheckHitsQuery ( |
Tests that two queries have an expected order of documents, and that the two queries have the same score values.
|
|
CheckNoMatchExplanations ( |
Tests that all documents up to maxDoc which are *not* in the expected result set, have an explanation which indicates that the document does not match
|
|
DoCheckHits ( |
Tests that a query matches the an expected set of documents using Hits. Note that when using the Hits API, documents will only be returned if they have a positive normalized score.
|
|
ExplainToleranceDelta ( float f1, float f2 ) : float |
returns a reasonable epsilon for comparing two floats, where minor differences are acceptable such as score vs. explain
|
|
Hits2str ( Lucene.Net.Search.ScoreDoc hits1, Lucene.Net.Search.ScoreDoc hits2, int start, int end ) : string | ||
TopdocsString ( Lucene.Net.Search.TopDocs docs, int start, int end ) : string | ||
VerifyExplanation ( string q, int doc, float score, bool deep, |
Assert that an explanation has the expected score, and optionally that its sub-details max/sum/factor match to that score.
|
public static CheckDocIds ( string mes, int results, Lucene.Net.Search.ScoreDoc hits ) : void | ||
mes | string | |
results | int | |
hits | Lucene.Net.Search.ScoreDoc | |
Результат | void |
public static CheckEqual ( |
||
query | ||
hits1 | Lucene.Net.Search.ScoreDoc | |
hits2 | Lucene.Net.Search.ScoreDoc | |
Результат | void |
public static CheckExplanations ( |
||
query | the query to test | |
defaultFieldName | string | used for displaing the query in assertion messages |
searcher | the searcher to test the query against | |
Результат | void |
public static CheckExplanations ( |
||
query | the query to test | |
defaultFieldName | string | used for displaing the query in assertion messages |
searcher | the searcher to test the query against | |
deep | bool | indicates whether a deep comparison of sub-Explanation details should be executed |
Результат | void |
public static CheckHitCollector ( |
||
random | ||
query | the query to test | |
defaultFieldName | string | used for displaying the query in assertion messages |
searcher | the searcher to test the query against | |
results | int | a list of documentIds that must match the query |
similarity |
/// LUCENENET specific
/// Removes dependency on |
|
Результат | void |
public static CheckHitsQuery ( |
||
query | ||
hits1 | Lucene.Net.Search.ScoreDoc | |
hits2 | Lucene.Net.Search.ScoreDoc | |
results | int | |
Результат | void |
public static CheckNoMatchExplanations ( |
||
q | ||
defaultFieldName | string | |
searcher | ||
results | int | |
Результат | void |
public static DoCheckHits ( |
||
random | ||
query | the query to test | |
defaultFieldName | string | used for displaing the query in assertion messages |
searcher | the searcher to test the query against | |
results | int | a list of documentIds that must match the query |
similarity |
/// LUCENENET specific
/// Removes dependency on |
|
Результат | void |
public static ExplainToleranceDelta ( float f1, float f2 ) : float | ||
f1 | float | |
f2 | float | |
Результат | float |
public static Hits2str ( Lucene.Net.Search.ScoreDoc hits1, Lucene.Net.Search.ScoreDoc hits2, int start, int end ) : string | ||
hits1 | Lucene.Net.Search.ScoreDoc | |
hits2 | Lucene.Net.Search.ScoreDoc | |
start | int | |
end | int | |
Результат | string |
public static TopdocsString ( Lucene.Net.Search.TopDocs docs, int start, int end ) : string | ||
docs | Lucene.Net.Search.TopDocs | |
start | int | |
end | int | |
Результат | string |
public static VerifyExplanation ( string q, int doc, float score, bool deep, |
||
q | string | String representation of the query for assertion messages |
doc | int | Document ID for assertion messages |
score | float | Real score value of doc with query q |
deep | bool | indicates whether a deep comparison of sub-Explanation details should be executed |
expl | The Explanation to match against score | |
Результат | void |
public static float EXPLAIN_SCORE_TOLERANCE_DELTA | ||
Результат | float |