Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-14627

SynonymGraphFilterFactory with Wordnet format synonym file produces array_index_out_of_bounds_exception at query time

    XMLWordPrintableJSON

    Details

      Description

      Hi,

      SynonymGraphFilterFactory with Wordnet format synonym file , fails at building (synonym) query.  

       

      Querystring : "Have regulations been passed by the FCC banning junk facsimile (fax)? If so, are they effective?"

       

      Below is the trace:

      
      java.lang.ArrayIndexOutOfBoundsException: 0
      	at org.apache.lucene.util.QueryBuilder.newSynonymQuery(QueryBuilder.java:653)
      	at org.apache.solr.parser.SolrQueryParserBase.newSynonymQuery(SolrQueryParserBase.java:617)
      	at org.apache.lucene.util.QueryBuilder.analyzeGraphBoolean(QueryBuilder.java:533)
      	at org.apache.lucene.util.QueryBuilder.createFieldQuery(QueryBuilder.java:320)
      	at org.apache.lucene.util.QueryBuilder.createFieldQuery(QueryBuilder.java:240)
      	at org.apache.solr.parser.SolrQueryParserBase.newFieldQuery(SolrQueryParserBase.java:524)
      	at org.apache.solr.parser.QueryParser.newFieldQuery(QueryParser.java:62)
      	at org.apache.solr.parser.SolrQueryParserBase.getFieldQuery(SolrQueryParserBase.java:1122)
      	at org.apache.solr.parser.QueryParser.MultiTerm(QueryParser.java:593)
      	at org.apache.solr.parser.QueryParser.Query(QueryParser.java:199)
      	at org.apache.solr.parser.QueryParser.TopLevelQuery(QueryParser.java:131)
      	at org.apache.solr.parser.SolrQueryParserBase.parse(SolrQueryParserBase.java:260)
      	at org.apache.solr.search.LuceneQParser.parse(LuceneQParser.java:49)
      	at org.apache.solr.search.QParser.getQuery(QParser.java:174)
      	at org.apache.solr.handler.component.QueryComponent.prepare(QueryComponent.java:160)
      	at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:279)
      	at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:198)
      	at org.apache.solr.core.SolrCore.execute(SolrCore.java:2576)
      	at org.apache.solr.servlet.HttpSolrCall.execute(HttpSolrCall.java:799)
      	at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:578)
      	at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:419)
      	at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:351)
      	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1602)
      	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:540)
      	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:146)
      	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)
      	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
      	at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:257)
      	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1711)
      	at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255)
      	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1347)
      	at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:203)
      	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:480)
      	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1678)
      	at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:201)
      	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1249)
      	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:144)
      	at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:220)
      	at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:152)
      	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
      	at org.eclipse.jetty.rewrite.handler.RewriteHandler.handle(RewriteHandler.java:335)
      	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
      	at org.eclipse.jetty.server.Server.handle(Server.java:505)
      	at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:370)
      	at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:267)
      	at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:305)
      	at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103)
      	at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:117)
      	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:333)
      	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:310)
      	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:168)
      	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:126)
      	at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:366)
      	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:781)
      	at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:917)
      	at java.lang.Thread.run(Unknown Source)

        Attachments

        1. wn_s.pl
          7.15 MB
          Atin

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Janki Atin
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: