[
https://issues.apache.org/jira/browse/LUCENE-8985?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16980835#comment-16980835
]
Jan Høydahl commented on LUCENE-8985:
-------------------------------------
I was hoping the new tests would describe the bug. The current sgf code does
not handle holes in the token stream caused by removing tokens in e.g.
stopfilter. When holes are remover then a phrase query may get wrong match.
Simplified example:
Document: Please clean the screen
After stopfilter: Please clean * screen
Query: “clean the monitor”
After stopfilter: “clean * monitor”
After sgf: “clean screen|monitor”
No match
> SynonymGraphFilter cannot handle input stream with tokens filtered.
> -------------------------------------------------------------------
>
> Key: LUCENE-8985
> URL: https://issues.apache.org/jira/browse/LUCENE-8985
> Project: Lucene - Core
> Issue Type: Bug
> Reporter: Chongchen Chen
> Assignee: Jan Høydahl
> Priority: Major
> Fix For: 8.3
>
> Attachments: SGF_SF_interaction.patch.txt
>
> Time Spent: 2h 40m
> Remaining Estimate: 0h
>
> [~janhoy] find the bug.
> In an analyzer with e.g. stopFilter where tokens are removed from the stream
> and replaced with a “hole”, synonymgraphfilter will not preserve these holes
> but remove them, resulting in certain phrase queries failing.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]