Solr
  1. Solr
  2. SOLR-167

synonym filter mixes up terms from different synonyms

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.1.0, 1.2
    • Fix Version/s: 1.2
    • Component/s: update
    • Labels:
      None

      Description

      SynonymFilter can mix up options from different synonyms, sometimes inserting the wrong word, sometimes using the wrong offset. Issue appears to be use of the matched arraylist in SynonymFilter

      To reproduce: add "best buy,bestbuy,bb" to the example's synonym list. Then view verbose analysis of the query analyzer output for "Best buy - Acer Aspire AS5610-2273 - $599. Windows vista, 1 GB RAM"

      "gigabytes" becomes a synonym of "Best buy", and the offsets of the remainder of the "GB" synonyms are incorrect.

      Assigning to Yonik as this code is too hairy for me to fix without further study.

        Activity

        Hide
        Yonik Seeley added a comment -

        Still need to figure out incorrect offsets, but the "gigabytes" a synonym of "Best buy" part was a display error in analysis.jsp : SOLR-168

        Show
        Yonik Seeley added a comment - Still need to figure out incorrect offsets, but the "gigabytes" a synonym of "Best buy" part was a display error in analysis.jsp : SOLR-168
        Hide
        Yonik Seeley added a comment -

        I just committed a fix for this.

        Show
        Yonik Seeley added a comment - I just committed a fix for this.
        Hide
        Hoss Man added a comment -

        This bug was modified as part of a bulk update using the criteria...

        • Marked ("Resolved" or "Closed") and "Fixed"
        • Had no "Fix Version" versions
        • Was listed in the CHANGES.txt for 1.2

        The Fix Version for all 39 issues found was set to 1.2, email notification
        was suppressed to prevent excessive email.

        For a list of all the issues modified, search jira comments for this
        (hopefully) unique string: 20080415hossman2

        Show
        Hoss Man added a comment - This bug was modified as part of a bulk update using the criteria... Marked ("Resolved" or "Closed") and "Fixed" Had no "Fix Version" versions Was listed in the CHANGES.txt for 1.2 The Fix Version for all 39 issues found was set to 1.2, email notification was suppressed to prevent excessive email. For a list of all the issues modified, search jira comments for this (hopefully) unique string: 20080415hossman2

          People

          • Assignee:
            Yonik Seeley
            Reporter:
            Mike Klaas
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development