Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-4533

Synonyms, created in custom filters are ignored after tokenizers.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 4.1
    • None
    • None
    • None

    Description

      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.

      Attachments

        1. synonyms.patch
          2 kB
          Artem Lukanin

        Activity

          People

            Unassigned Unassigned
            alukanin Artem Lukanin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: