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?
{
"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?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.