|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| NonMatchingScorer | Line # 22 | 8 | 6 | 42.9% |
0.42857143
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
| (12) | |||
| Result | |||
|
0.42857143
|
org.apache.lucene.search.TestBooleanMinShouldMatch.testMinHigherThenNumOptional
org.apache.lucene.search.TestBooleanMinShouldMatch.testMinHigherThenNumOptional
|
1 PASS | |
|
0.42857143
|
org.apache.lucene.search.TestBoolean2.testRandomQueries
org.apache.lucene.search.TestBoolean2.testRandomQueries
|
1 PASS | |
|
0.42857143
|
org.apache.lucene.search.TestBooleanMinShouldMatch.testRandomQueries
org.apache.lucene.search.TestBooleanMinShouldMatch.testRandomQueries
|
1 PASS | |
|
0.42857143
|
org.apache.lucene.search.TestBooleanMinShouldMatch.testNoOptionalButMin
org.apache.lucene.search.TestBooleanMinShouldMatch.testNoOptionalButMin
|
1 PASS | |
|
0.2857143
|
org.apache.lucene.search.TestFuzzyQuery.testFuzzinessLong
org.apache.lucene.search.TestFuzzyQuery.testFuzzinessLong
|
1 PASS | |
|
0.2857143
|
org.apache.lucene.queryParser.TestQueryParser.testLocalDateFormat
org.apache.lucene.queryParser.TestQueryParser.testLocalDateFormat
|
1 PASS | |
|
0.2857143
|
org.apache.lucene.search.TestFuzzyQuery.testFuzziness
org.apache.lucene.search.TestFuzzyQuery.testFuzziness
|
1 PASS | |
|
0.2857143
|
org.apache.lucene.search.TestComplexExplanations.test1
org.apache.lucene.search.TestComplexExplanations.test1
|
1 PASS | |
|
0.2857143
|
org.apache.lucene.search.TestBoolean2.testQueries07
org.apache.lucene.search.TestBoolean2.testQueries07
|
1 PASS | |
|
0.2857143
|
org.apache.lucene.search.TestWildcard.testQuestionmark
org.apache.lucene.search.TestWildcard.testQuestionmark
|
1 PASS | |
|
0.2857143
|
org.apache.lucene.search.TestWildcard.testAsterisk
org.apache.lucene.search.TestWildcard.testAsterisk
|
1 PASS | |
|
0.2857143
|
org.apache.lucene.search.TestComplexExplanations.test2
org.apache.lucene.search.TestComplexExplanations.test2
|
1 PASS | |
| 1 | package org.apache.lucene.search; | |
| 2 | ||
| 3 | /** | |
| 4 | * Copyright 2005 Apache Software Foundation | |
| 5 | * | |
| 6 | * Licensed under the Apache License, Version 2.0 (the "License"); | |
| 7 | * you may not use this file except in compliance with the License. | |
| 8 | * You may obtain a copy of the License at | |
| 9 | * | |
| 10 | * http://www.apache.org/licenses/LICENSE-2.0 | |
| 11 | * | |
| 12 | * Unless required by applicable law or agreed to in writing, software | |
| 13 | * distributed under the License is distributed on an "AS IS" BASIS, | |
| 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| 15 | * See the License for the specific language governing permissions and | |
| 16 | * limitations under the License. | |
| 17 | */ | |
| 18 | ||
| 19 | import java.io.IOException; | |
| 20 | ||
| 21 | /** A scorer that matches no document at all. */ | |
| 22 | class NonMatchingScorer extends Scorer { | |
| 23 | 1241 |
public NonMatchingScorer() { super(null); } // no similarity used |
| 24 | ||
| 25 | 0 |
public int doc() { throw new UnsupportedOperationException(); } |
| 26 | ||
| 27 | 872 |
public boolean next() throws IOException { return false; } |
| 28 | ||
| 29 | 0 |
public float score() { throw new UnsupportedOperationException(); } |
| 30 | ||
| 31 | 369 |
public boolean skipTo(int target) { return false; } |
| 32 | ||
| 33 | 0 |
public Explanation explain(int doc) { |
| 34 | 0 | Explanation e = new Explanation(); |
| 35 | 0 | e.setDescription("No document matches."); |
| 36 | 0 | return e; |
| 37 | } | |
| 38 | } | |
| 39 | ||
| 40 | ||
|
||||||||||