java.lang.IllegalStateException: unexpected docvalues type NUMERIC for field 'predictiveModelId' (expected one of [SORTED, SORTED_SET]). Use UninvertingReader or index with docvalues.

Stack Overflow | morse | 8 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Solr BlockJoin Child Facets

    Stack Overflow | 8 months ago | morse
    java.lang.IllegalStateException: unexpected docvalues type NUMERIC for field 'predictiveModelId' (expected one of [SORTED, SORTED_SET]). Use UninvertingReader or index with docvalues.

    Root Cause Analysis

    1. java.lang.IllegalStateException

      unexpected docvalues type NUMERIC for field 'predictiveModelId' (expected one of [SORTED, SORTED_SET]). Use UninvertingReader or index with docvalues.

      at org.apache.lucene.index.DocValues.checkField()
    2. Lucene
      DocValues.getSortedSet
      1. org.apache.lucene.index.DocValues.checkField(DocValues.java:212)
      2. org.apache.lucene.index.DocValues.getSortedSet(DocValues.java:306)
      2 frames
    3. Apache Solr Core
      BlockJoinFacetCollector.doSetNextReader
      1. org.apache.solr.search.join.BlockJoinFieldFacetAccumulator.initSegmentData(BlockJoinFieldFacetAccumulator.java:77)
      2. org.apache.solr.search.join.BlockJoinFieldFacetAccumulator.setNextReader(BlockJoinFieldFacetAccumulator.java:183)
      3. org.apache.solr.search.join.BlockJoinFacetCollector.doSetNextReader(BlockJoinFacetCollector.java:78)
      3 frames
    4. Lucene
      IndexSearcher.search
      1. org.apache.lucene.search.SimpleCollector.getLeafCollector(SimpleCollector.java:33)
      2. org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:660)
      3. org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:473)
      3 frames
    5. Apache Solr Core
      SolrDispatchFilter.doFilter
      1. org.apache.solr.search.SolrIndexSearcher.buildAndRunCollectorChain(SolrIndexSearcher.java:260)
      2. org.apache.solr.search.SolrIndexSearcher.getDocListNC(SolrIndexSearcher.java:1810)
      3. org.apache.solr.search.SolrIndexSearcher.getDocListC(SolrIndexSearcher.java:1627)
      4. org.apache.solr.search.SolrIndexSearcher.search(SolrIndexSearcher.java:643)
      5. org.apache.solr.handler.component.QueryComponent.process(QueryComponent.java:529)
      6. org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:301)
      7. org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:156)
      8. org.apache.solr.core.SolrCore.execute(SolrCore.java:2036)
      9. org.apache.solr.servlet.HttpSolrCall.execute(HttpSolrCall.java:657)
      10. org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:464)
      11. org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:257)
      12. org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:208)
      12 frames
    6. Jetty
      SelectChannelEndPoint$2.run
      1. org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1668)
      2. org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:581)
      3. org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
      4. org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)
      5. org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)
      6. org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1160)
      7. org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:511)
      8. org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
      9. org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1092)
      10. org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
      11. org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:213)
      12. org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:119)
      13. org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134)
      14. org.eclipse.jetty.server.Server.handle(Server.java:518)
      15. org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:308)
      16. org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:244)
      17. org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:273)
      18. org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95)
      19. org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93)
      19 frames
    7. org.eclipse.jetty
      ExecuteProduceConsume.run
      1. org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceAndRun(ExecuteProduceConsume.java:246)
      2. org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:156)
      2 frames
    8. Jetty
      QueuedThreadPool$3.run
      1. org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:654)
      2. org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:572)
      2 frames