| org.apache.lucene.util.LuceneTestCase org.apache.lucene.search.TestPhraseQuery
Method Summary | |
public void | setUp() | public void | tearDown() | public void | testBarelyCloseEnough() | public void | testExact() | public void | testMulipleTerms() | public void | testNonExistingPhrase() | public void | testNotCloseEnough() | public void | testOrderDoesntMatter() | public void | testPalyndrome2() Working on a 2 fields like this:
Field("field", "one two three four five")
Field("palindrome", "one two three two one")
Phrase of size 2 occuriong twice, once in order and once in reverse,
because doc is a palyndrome, is counted twice. | public void | testPalyndrome3() Working on a 2 fields like this:
Field("field", "one two three four five")
Field("palindrome", "one two three two one")
Phrase of size 3 occuriong twice, once in order and once in reverse,
because doc is a palyndrome, is counted twice. | public void | testPhraseQueryInConjunctionScorer() | public void | testPhraseQueryWithStopAnalyzer() | public void | testSlop1() | public void | testSlopScoring() | public void | testWrappedPhrase() |
SCORE_COMP_THRESH | final public static float SCORE_COMP_THRESH(Code) | | threshold for comparing floats
|
testBarelyCloseEnough | public void testBarelyCloseEnough() throws Exception(Code) | | |
testExact | public void testExact() throws Exception(Code) | | Ensures slop of 0 works for exact matches, but not reversed
|
testMulipleTerms | public void testMulipleTerms() throws Exception(Code) | | slop is the total number of positional moves allowed
to line up a phrase
|
testOrderDoesntMatter | public void testOrderDoesntMatter() throws Exception(Code) | | As long as slop is at least 2, terms can be reversed
|
testPalyndrome2 | public void testPalyndrome2() throws Exception(Code) | | Working on a 2 fields like this:
Field("field", "one two three four five")
Field("palindrome", "one two three two one")
Phrase of size 2 occuriong twice, once in order and once in reverse,
because doc is a palyndrome, is counted twice.
Also, in this case order in query does not matter.
Also, when an exact match is found, both sloppy scorer and exact scorer scores the same.
|
testPalyndrome3 | public void testPalyndrome3() throws Exception(Code) | | Working on a 2 fields like this:
Field("field", "one two three four five")
Field("palindrome", "one two three two one")
Phrase of size 3 occuriong twice, once in order and once in reverse,
because doc is a palyndrome, is counted twice.
Also, in this case order in query does not matter.
Also, when an exact match is found, both sloppy scorer and exact scorer scores the same.
|
testPhraseQueryInConjunctionScorer | public void testPhraseQueryInConjunctionScorer() throws Exception(Code) | | |
testPhraseQueryWithStopAnalyzer | public void testPhraseQueryWithStopAnalyzer() throws Exception(Code) | | |
|
|