Upgrading from 2.4 -> 7.9, Synonym reserved words?

We're doing a big upgrade on various indexes, going from 2.4 -> 7.9.

One thing we're running into is we had a number of synonyms that had the words 'and' and 'or' in them, and they're being rejected by 7.9.

One of them is kind of important: it creates a synonym for OR to be OREGON.

I have not been able to find much in the way of documentation for this change to how synonyms are treated. Can anyone provide any insight on how we might handle things like this in the new version?

1 Like

Can't comment on potential changes sorry.
What errors are you seeing with the rejections? How are you posting them, can you share an example?

Here is the response:

{
  "error" : {
    "root_cause" : [
      {
        "type" : "illegal_argument_exception",
        "reason" : "failed to build synonyms"
      }
    ],
    "type" : "illegal_argument_exception",
    "reason" : "failed to build synonyms",
    "caused_by" : {
      "type" : "parse_exception",
      "reason" : "Invalid synonym rule at line 204",
      "caused_by" : {
        "type" : "illegal_argument_exception",
        "reason" : "term: as was completely eliminated by analyzer"
      }
    }
  },
  "status" : 400
}

That is for lines like:

or, operating room
as, american samoa

I realize these are probably relatively useless as synonyms in conjunction with stop words, but what I don't really see anywhere is any sort of documentation around this change?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.