# Error on reindex using WordNet synonyms file

**URL:** <https://discuss.elastic.co/t/error-on-reindex-using-wordnet-synonyms-file/109692>\
**Category:** Elasticsearch\
**Created:** [November 30, 2017, 6:37am UTC](https://discuss.elastic.co/t/error-on-reindex-using-wordnet-synonyms-file/109692 "2017-11-30T06:37:22Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![techpeace](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/techpeace/32/24856_2.png) [@techpeace](https://discuss.elastic.co/u/techpeace)\
**Post date:** [November 30, 2017, 6:37am UTC](https://discuss.elastic.co/t/error-on-reindex-using-wordnet-synonyms-file/109692/1 "2017-11-30T06:37:22Z")

</div>

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`):

```json
{
	"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"
			}
		}
	}
}

```

Here's the line it's objecting to:

```auto
s(100001930,1,'physical entity',n,1,0). 

```

I'm using the WordNet Prolog synonyms file from [http://wordnetcode.princeton.edu/3.0/WNprolog-3.0.tar.gz](http://wordnetcode.princeton.edu/3.0/WNprolog-3.0.tar.gz)

Just wondering where I might have gone astray, or if I should open an issue on the GitHub repo. Thanks!

---

<div class="post-metadata">

**Author:** ![techpeace](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/techpeace/32/24856_2.png) [@techpeace](https://discuss.elastic.co/u/techpeace)\
**Post date:** [November 30, 2017, 6:51am UTC](https://discuss.elastic.co/t/error-on-reindex-using-wordnet-synonyms-file/109692/2 "2017-11-30T06:51:26Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [December 1, 2017, 8:24am UTC](https://discuss.elastic.co/t/error-on-reindex-using-wordnet-synonyms-file/109692/3 "2017-12-01T08:24:59Z")

</div>

please go ahead an open an issue about this, sounds like a bug to me! Thanks a lot!

---

<div class="post-metadata">

**Author:** ![techpeace](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/techpeace/32/24856_2.png) [@techpeace](https://discuss.elastic.co/u/techpeace)\
**Post date:** [December 13, 2017, 10:01pm UTC](https://discuss.elastic.co/t/error-on-reindex-using-wordnet-synonyms-file/109692/4 "2017-12-13T22:01:18Z")

</div>

Sure thing! Opened [issue #27798](https://github.com/elastic/elasticsearch/issues/27798).

---

<div class="post-metadata">

**Author:** ![jasontedor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasontedor/32/66992_2.png) [@jasontedor](https://discuss.elastic.co/u/jasontedor)\
**Post date:** [December 13, 2017, 11:06pm UTC](https://discuss.elastic.co/t/error-on-reindex-using-wordnet-synonyms-file/109692/5 "2017-12-13T23:06:31Z")

</div>

> [@techpeace](#):
>
> I also see that macOS is not a supported platform.

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.

I hope that helps.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [January 10, 2018, 11:06pm UTC](https://discuss.elastic.co/t/error-on-reindex-using-wordnet-synonyms-file/109692/6 "2018-01-10T23:06:50Z")

</div>

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