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

managed synonyms don't gracefully handle lowercasing

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 4.9, 6.0
    • None
    • None

    Description

      I've been having bad luck testing new functionallity lately - the first thing I try never works

      /opt/code/lusolr48/solr/example/solr/collection1/conf$ curl -XPUT "http://localhost:8983/solrsis/synonyms/english"   -H 'Content-type:application/json'   --data-binary '{"MB":["MiB","Megabyte"]}'
      {
        "responseHeader":{
          "status":500,
          "QTime":3},
        "error":{
          "msg":"Bad Request",
          "trace":"Bad Request (400) - Unsupported value null for mb; expected single value or a JSON array!\n
      [...]
      

      I finally figured out that if I lowercased "MB" to "mb", then it works as expected.
      Also, it looks like because ignoreCase is true in the initArgs, everything is stored as lower case in the managed map (losing information). Ideally case would be preserved in the synonym file (esp if one wanted to change ignoreCase either way). I imagine stopwords may have the same issue, but I haven't checked.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            thelabdude Timothy Potter
            yseeley@gmail.com Yonik Seeley
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment