[ 
https://issues.apache.org/jira/browse/LUCENE-8985?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16991947#comment-16991947
 ] 

Jan Høydahl commented on LUCENE-8985:
-------------------------------------

Thanks for chiming in Michael. Not sure where the "holes" approach came from 
but it's been that way as long as I can remember, so we should respect those 
holes. I also agree that this same behaviour of holes may potentially be an 
issue with other filters such as WDGF but in the isolated context of 
input/output expectations of SGF, the fix must be in that component.

The patch is in a too complex area for me to confidently OK it. So perhaps if 
we added a bunch of unit tests for various input/output expectaions of today's 
SGF and commit those first, then we could add even more tests to this PR to 
assert expected behaviours with "holes".

> 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]

Reply via email to