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

When using Synonym Graph Filter, Solr does not tokenize query-string if it has multi-word synonym

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Invalid
    • Affects Version/s: 8.3.1
    • Fix Version/s: None
    • Component/s: query, Schema and Analysis
    • Labels:
      None

      Description

       

      While using Synonym Graph Filter,  if the query string contains a multi-word synonym, it considers that multi-word synonym as a single term and does not tokenize it further.

       

      For example- soap powder is a search query which is also a multi-word synonym in the synonym file as-

      s(104254535,1,'soap powder',n,1,1).
      s(104254535,2,'built-soap powder',n,1,0).
      s(104254535,3,'washing powder',n,1,0).

       
      There are 2 documents having soap(2) and powder(1) altogether.
      doc1: "Sunny Berlin breast tumors soap powder"
      doc2: "She is in soap Berlin today"
       
       
      Scenario 1 (screenshot attached) 
       without Synonym Graph Filter => 2 docs returned  , as it checks for "soap"  and "powder" separately.
       
      Scenario 2 (screenshot attached) 
      with Synonym Graph Filter => only 1 doc returned, but 2 were expected. Here only "soap powder" is being checked and it is not tokenized into "soap" and "powder" and searched further.

      Is it possible to expand query string - soap powder as:

      Synonym(soap powder) + Synonym(soap) + Synonym(powder)

       

      Thank You.

        Attachments

        1. Scenario1.png
          83 kB
          Atin
        2. Scenario2.png
          84 kB
          Atin

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Janki Atin
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: