Comments (6)
Hm, not sure what the issue is there.
I have to be honest; I'm not really maintaining this plugin anymore. Could you step through in the debugger and figure out where the error is coming from? I would happily accept a pull request! :D
from hon-lucene-synonyms.
Thanks, I will try to step through the debugger. I tried to import some synonyms to the database again and figured out I receive the error after around 12000 rows. Maybe a memory issue? Anyway, I will post the error over here, as soon as it comes back. Will check the solr logs first...
from hon-lucene-synonyms.
Found the error again:
First time loading the url I got this:
<str name="msg">Failed to create parser. Check your config.</str> <str name="trace"> org.apache.solr.common.SolrException: Failed to create parser. Check your config. at org.apache.solr.search.SynonymExpandingExtendedDismaxQParserPlugin.parseConfig(SynonymExpandingExtendedDismaxQParserPlugin.java:253) at org.apache.solr.search.SynonymExpandingExtendedDismaxQParserPlugin.createParser(SynonymExpandingExtendedDismaxQParserPlugin.java:149) at org.apache.solr.search.QParser.getParser(QParser.java:315) at org.apache.solr.handler.component.QueryComponent.prepare(QueryComponent.java:144) at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:203) at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:135) at org.apache.solr.core.SolrCore.execute(SolrCore.java:1916) at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:768) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:415) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:205) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1024) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744) Caused by: java.io.IOException: Error parsing synonyms file: at org.apache.lucene.analysis.synonym.FSTSynonymFilterFactory.inform(FSTSynonymFilterFactory.java:114) at org.apache.lucene.analysis.synonym.SynonymFilterFactory.inform(SynonymFilterFactory.java:90) at com.s24.search.solr.analysis.jdbc.JdbcSynonymFilterFactory.inform(JdbcSynonymFilterFactory.java:53) at org.apache.solr.search.SynonymExpandingExtendedDismaxQParserPlugin.parseConfig(SynonymExpandingExtendedDismaxQParserPlugin.java:233) ... 24 more Caused by: java.text.ParseException: Invalid synonym rule at line 12069 at org.apache.lucene.analysis.synonym.SolrSynonymParser.parse(SolrSynonymParser.java:71) at org.apache.lucene.analysis.synonym.FSTSynonymFilterFactory.loadSynonyms(FSTSynonymFilterFactory.java:142) at org.apache.lucene.analysis.synonym.FSTSynonymFilterFactory.inform(FSTSynonymFilterFactory.java:112) ... 27 more Caused by: java.lang.IllegalArgumentException: term: analyzed to a zero-length token at org.apache.lucene.analysis.synonym.SynonymMap$Parser.analyze(SynonymMap.java:321) at org.apache.lucene.analysis.synonym.SolrSynonymParser.addInternal(SolrSynonymParser.java:98) at org.apache.lucene.analysis.synonym.SolrSynonymParser.parse(SolrSynonymParser.java:69) ... 29 more
Then this:
<lst name="reasonForNotExpandingSynonyms"> <str name="name">NoAnalyzerSpecified</str> <str name="explanation"> You defined >1 synonym analyzer in your configuration, but you left synonyms.analyzer empty. </str> </lst>
from hon-lucene-synonyms.
So did you try to define synonyms.analyzer
? It should be the same name as one of the analyzers you defined in XML.
from hon-lucene-synonyms.
Yes I did. But then I get this error:
<lst name="reasonForNotExpandingSynonyms"> <str name="name">AnalyzerNotFound</str> <str name="explanation"> There's no analyzer with the name you specified in synonyms.analyzer. </str> </lst>
Which is strange, cause with around 12000 rows left in the database, everything is working just fine. Now I've around 18000 rows and It's broken again. Don't know or it could be because of some special characters or just the amount of rows....
from hon-lucene-synonyms.
Hmm, if the analyzer doesn't exist, then it probably failed to be created, probably due to an out of memory error or something like that. Did you check the logs when you started up the server?
from hon-lucene-synonyms.
Related Issues (20)
- Adding .jar to $SOLR_HOME generates class not found exception? HOT 4
- Compatibility with Solr 6.0.0? HOT 2
- Matches all docs if bf (Boost Function) present HOT 5
- Does it supports fielded search in q parameter? HOT 1
- Is it possible to use it with lucene? HOT 1
- TooManyClauses: maxClauseCount is set to 1024 HOT 2
- Too much memory consumed on queries matching many synonym groups HOT 3
- Does not seem to support singular and plural HOT 3
- Does not return expanded synonyms in highlight terms
- SOLR is slow at first synonym query but quite fast for later queries HOT 1
- Error loading class 'com.github.healthonnet.search.SynonymExpandingExtendedDismaxQParserPlugin' HOT 4
- Error when doing a search
- Not finding any matches... am I being stupid? HOT 2
- boost parameter is not working HOT 2
- Need help on finding logs after synonym expansion for solr HOT 2
- synonyms.constructPhrases not working when synonyms.bag is used...
- Facing error when adding Queryparser to solrconfig.xml
- Allow configuring defaults
- boost Not working when searching for a Synonym
- IS this project Supported any more Beyond Solr 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hon-lucene-synonyms.