Running elasticsearch 6.0.0 on macOS 10.12.6, I'm encountering the following error on indexing when trying to use the wn_s.pl synonyms file (which I've moved to /usr/local/etc/elasticsearch):
{
"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 2",
"caused_by": {
"type": "illegal_argument_exception",
"reason": "term: physical entity analyzed to a token with posinc != 1"
}
}
}
}
Downgrading to 5.6 seems to have resolved the issue, but I also see that macOS is not a supported platform. If anybody manages to repro on an officially supported OS, it's probably worth filing a bug.
I want to clarify something here: we do not support macOS in production. We support macOS in the sense that we want our user community to be successful. Most users start with Elasticsearch on their laptops, and macOS is a popular laptop OS for our user community so we support users on this OS, just not for production uses.
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.