Giter Site home page Giter Site logo

Comments (6)

nolanlawson avatar nolanlawson commented on August 19, 2024

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.

ErikvdVen avatar ErikvdVen commented on August 19, 2024

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.

ErikvdVen avatar ErikvdVen commented on August 19, 2024

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.

nolanlawson avatar nolanlawson commented on August 19, 2024

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.

ErikvdVen avatar ErikvdVen commented on August 19, 2024

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.

nolanlawson avatar nolanlawson commented on August 19, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.