lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jack Krupansky" <j...@basetechnology.com>
Subject Re: SOLR 4.3.0 synonym filter - parse error - SOLR 4.3.0
Date Mon, 10 Jun 2013 20:01:28 GMT
You just have to look further down the stack trace "cause" chain to find it:

Caused by: java.text.ParseException: Invalid synonym rule at line 10
        at 
org.apache.lucene.analysis.synonym.SolrSynonymParser.add(SolrSynonymParser.java:72)
        at 
org.apache.lucene.analysis.synonym.FSTSynonymFilterFactory.loadSolrSynonyms(FSTSynonymFilterFactory.java:127)
        at 
org.apache.lucene.analysis.synonym.FSTSynonymFilterFactory.inform(FSTSynonymFilterFactory.java:98)
        ... 17 more
Caused by: java.lang.IllegalArgumentException: term:  was completely 
eliminated by analyzer
        at 
org.apache.lucene.analysis.synonym.SynonymMap$Builder.analyze(SynonymMap.java:140)
        at 
org.apache.lucene.analysis.synonym.SolrSynonymParser.addInternal(SolrSynonymParser.java:99)
        at 
org.apache.lucene.analysis.synonym.SolrSynonymParser.add(SolrSynonymParser.java:70)
        ... 19 more

Your line 10:

n.e., nordest, nord-est, north-east, => northeast

You have trailing comma before the "=> operator. That resulted in an empty 
term. You have at least one other as well.

-- Jack Krupansky

-----Original Message----- 
From: bbarani
Sent: Monday, June 10, 2013 2:47 PM
To: solr-user@lucene.apache.org
Subject: SOLR 4.3.0 synonym filter - parse error - SOLR 4.3.0

For some reason I am getting the below error when parsing synonyms using
synonyms file.

Synonyms File:

http://www.pastebin.ca/2395108

The server encountered an internal error ({msg=SolrCore 'solr' is not
available due to init failure: java.io.IOException: Error parsing synonyms
file:,trace=org.apache.solr.common.SolrException: SolrCore 'solr' is not
available due to init failure: java.io.IOException: Error parsing synonyms
file: at org.apache.solr.core.CoreContainer.getCore(CoreContainer.java:1212)
at
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:248)
at

I couldn't really find any issue with the synonyms file..Can someone let me
know where I am wrong?



--
View this message in context: 
http://lucene.472066.n3.nabble.com/SOLR-4-3-0-synonym-filter-parse-error-SOLR-4-3-0-tp4069469.html
Sent from the Solr - User mailing list archive at Nabble.com. 


Mime
View raw message