Issue Details (XML | Word | Printable)

Key: LUCENE-1310
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Doron Cohen
Reporter: Grant Glouser
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Lucene - Java

Phrase query with term repeated 3 times requires more slop than expected

Created: 20/Jun/08 03:48 AM   Updated: 05/Aug/08 07:44 AM
Return to search
Component/s: Search
Affects Version/s: 2.3.1, 2.3.2
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works LUCENE-1310.1.patch 2008-06-27 03:57 AM Grant Glouser 2 kB
Text File Licensed for inclusion in ASF works LUCENE-1310.patch 2008-07-01 04:01 AM Doron Cohen 13 kB
Text File Licensed for inclusion in ASF works LUCENE-1310.patch 2008-06-30 03:56 PM Doron Cohen 13 kB
Text File Licensed for inclusion in ASF works LUCENE-1310.patch 2008-06-28 08:19 PM Doron Cohen 12 kB
Text File Licensed for inclusion in ASF works LUCENE-1310.patch 2008-06-28 04:29 PM Doron Cohen 11 kB
Text File Licensed for inclusion in ASF works LUCENE-1310.patch 2008-06-26 06:05 PM Doron Cohen 10 kB
Text File Licensed for inclusion in ASF works LUCENE-2.3.1-1310.patch 2008-07-01 04:28 AM Doron Cohen 13 kB
Java Source File Licensed for inclusion in ASF works TestSloppyPhraseQuery.java 2008-06-20 03:50 AM Grant Glouser 3 kB

Lucene Fields: New
Resolution Date: 05/Aug/08 07:44 AM


 Description  « Hide
Consider a document with the text "A A A".
The phrase query "A A A" (exact match) succeeds.
The query "A A A"~1 (same document and query, just increasing the slop value by one) fails.
"A A A"~2 succeeds again.

If the exact match succeeds, I wouldn't expect the same query but with more slop to fail. The fault seems to require some term to be repeated at least three times in the query, but the three occurrences do not need to be adjacent. I will attach a file that contains a set of JUnit tests that demonstrate what I mean.



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Grant Glouser made changes - 20/Jun/08 03:50 AM
Field Original Value New Value
Attachment TestSloppyPhraseQuery.java [ 12384342 ]
Doron Cohen made changes - 26/Jun/08 10:51 AM
Assignee Doron Cohen [ doronc ]
Doron Cohen made changes - 26/Jun/08 06:05 PM
Attachment LUCENE-1310.patch [ 12384774 ]
Grant Glouser made changes - 27/Jun/08 03:57 AM
Attachment LUCENE-1310.1.patch [ 12384809 ]
Doron Cohen made changes - 28/Jun/08 04:29 PM
Attachment LUCENE-1310.patch [ 12384890 ]
Doron Cohen made changes - 28/Jun/08 08:19 PM
Attachment LUCENE-1310.patch [ 12384899 ]
Doron Cohen made changes - 30/Jun/08 03:56 PM
Attachment LUCENE-1310.patch [ 12384967 ]
Doron Cohen made changes - 01/Jul/08 04:01 AM
Attachment LUCENE-1310.patch [ 12384998 ]
Doron Cohen made changes - 01/Jul/08 04:28 AM
Attachment LUCENE-2.3.1-1310.patch [ 12385000 ]
Doron Cohen made changes - 05/Aug/08 07:44 AM
Status Open [ 1 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]