You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Mayya Sharipova (JIRA)" <ji...@apache.org> on 2017/12/15 15:51:00 UTC
[jira] [Updated] (LUCENE-8100) Error on reindex using WordNet
synonyms file
[ https://issues.apache.org/jira/browse/LUCENE-8100?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mayya Sharipova updated LUCENE-8100:
------------------------------------
Description:
Originally reported in the ES issues: https://github.com/elastic/elasticsearch/issues/27798#issuecomment-351838983
but looks like the issue is introduced from the Lucene 7.0.X.
Copying the user's issue here:
------------------------------------------------------
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):
{code:javascript}
{
"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"
}
}
}
}
{code}
Here's the line it's objecting to:
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.gz2
------------------------------------------------------
Looks like the error comes from Lucene's classes of *WordnetSynonymParser* and *SynonymMap*, and changes introduced from Lucene 7.0 version.
was:
Originally reported in the ES issues: https://github.com/elastic/elasticsearch/issues/27798#issuecomment-351838983
but looks like the issue is introduced from the Lucene 7.0.X.
Copying the user's issue here:
------------------------------------------------------
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):
{code:javascript}
{
"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"
}
}
}
}
{code}
Here's the line it's objecting to:
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.gz2
------------------------------------------------------
Looks like the error comes from Lucene's classes of *WordnetSynonymParser* and *SynonymMap*, and changes introduce from Lucene 7.0 version.
> Error on reindex using WordNet synonyms file
> --------------------------------------------
>
> Key: LUCENE-8100
> URL: https://issues.apache.org/jira/browse/LUCENE-8100
> Project: Lucene - Core
> Issue Type: Bug
> Components: modules/analysis
> Affects Versions: 7.0.1
> Reporter: Mayya Sharipova
> Priority: Minor
>
> Originally reported in the ES issues: https://github.com/elastic/elasticsearch/issues/27798#issuecomment-351838983
> but looks like the issue is introduced from the Lucene 7.0.X.
> Copying the user's issue here:
> ------------------------------------------------------
> 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):
> {code:javascript}
> {
> "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"
> }
> }
> }
> }
> {code}
> Here's the line it's objecting to:
> 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.gz2
> ------------------------------------------------------
> Looks like the error comes from Lucene's classes of *WordnetSynonymParser* and *SynonymMap*, and changes introduced from Lucene 7.0 version.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org