You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "David Smiley (JIRA)" <ji...@apache.org> on 2016/11/16 14:44:59 UTC

[jira] [Commented] (SOLR-4533) Synonyms, created in custom filters are ignored after tokenizers.

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

David Smiley commented on SOLR-4533:
------------------------------------

Is this still an issue?  A test is quite necessary to demonstrate that there's a problem this patch fixes.

> Synonyms, created in custom filters are ignored after tokenizers.
> -----------------------------------------------------------------
>
>                 Key: SOLR-4533
>                 URL: https://issues.apache.org/jira/browse/SOLR-4533
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 4.1
>            Reporter: Artem Lukanin
>         Attachments: synonyms.patch
>
>
> If a synonym token is added in a custom filter (e.g. this one: http://solr.pl/en/2013/02/04/developing-your-own-solr-filter-part-2/) and the default operator is AND, the query becomes broken, because 2 tokens at the same position becomes required, which is impossible. Solution: place all synonyms in a separate clause and assign these tokens occur=SHOULD.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org