ComplexPhraseQueryParser parses wrongly when special characters found
Open
type:bug
- Dominant language
- Java
- Stars
- 3.6k
- Forks
- 1.4k
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 88
Description
### Description
\"media$kits weekend\"~10 get translated to "(media kits) weekend" with Slop:10
This cause the query to tag when a document has only media and weekend or kits and weekend whereas intended search is to get when "media kits weekend"~10. This happens with any special character.
### Version and environment details
Lucene.NET 4.8
Contributor guide
Research direction
Start by locating ComplexPhraseQueryParser and reproduce the reported query: "media$kits weekend"~10. Compare its parsed query with the intended phrase behavior, then verify that special characters do not broaden matching beyond documents containing the complete phrase within slop 10.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- search
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100