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

Synonyms, created in custom filters are ignored after tokenizers.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 4.1
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      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

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

              Dates

              • Created:
                Updated: