Solr 7.7 - group faceting errors

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Solr 7.7 - group faceting errors

Jay Potharaju-2
Hi,
I am running into a bug when doing group faceting. This is the same error I
ran into when upgrading from 5.5 to 6.x.
http://lucene.472066.n3.nabble.com/solr-6-6-3-intermittent-group-faceting-errors-td4385692.html#a4385865
I had bypassed the error in solr 6.x by turning off docvalues. But in solr
7.7 it wont let me do faceting without enabling docvalues.
Anyone else ran into this issue?

Sample Document
{ "id":"123:34!1:1",
        "product_id":1,
        "sku_id":1
        },
        {
        "id":"123:34!2:1",
        "category_id": [1,2]
        "product_id":2,
        "sku_id":1
        }
solr 7.7 schema
<field name="product_id" type="plong" indexed="true" stored="true" required=
"true" />
<field name="category_id" type="plongs" indexed="true" stored="true"
required="false" />


solr 6..6 schema

<field name="category_id" type="tlong" indexed="true" stored="true"
required="false" multiValued="true"/>

    <field name="product_id" type="long" indexed="true" stored="true"
required="true" />

 2019-03-29 20:14:30.188 ERROR (qtp2051853139-14) [c:collection1
s:shard2 r:core_node4 x:collection1_shard2_replica_n2]
o.a.s.h.RequestHandlerBase org.apache.solr.common.SolrException:
Exception during facet.field: category_id
        at org.apache.solr.request.SimpleFacets.lambda$getFacetFieldCounts$0(SimpleFacets.java:832)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at org.apache.solr.request.SimpleFacets$3.execute(SimpleFacets.java:771)
        at org.apache.solr.request.SimpleFacets.getFacetFieldCounts(SimpleFacets.java:841)
        at org.apache.solr.handler.component.FacetComponent.getFacetCounts(FacetComponent.java:329)
        at org.apache.solr.handler.component.FacetComponent.process(FacetComponent.java:273)
        at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:298)
        at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:199)
        at org.apache.solr.core.SolrCore.execute(SolrCore.java:2551)
        at org.apache.solr.servlet.HttpSolrCall.execute(HttpSolrCall.java:710)
        at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:516)
        at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:395)
        at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:341)
        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:1588)
        at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255)
        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1345)
        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:1557)
        at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:201)
        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1247)
        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:126)
        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:502)
        at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:364)
        at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:260)
        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:118)
        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:765)
        at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:683)
        at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.IllegalStateException: unexpected docvalues type
NUMERIC for field 'product_id' (expected=SORTED). Re-index with
correct docvalues type.
        at org.apache.lucene.index.DocValues.checkField(DocValues.java:340)
        at org.apache.lucene.index.DocValues.getSorted(DocValues.java:392)
        at org.apache.lucene.search.grouping.TermGroupFacetCollector$MV.doSetNextReader(TermGroupFacetCollector.java:312)
        at org.apache.lucene.search.SimpleCollector.getLeafCollector(SimpleCollector.java:33)
        at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:661)
        at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:471)
        at org.apache.solr.request.SimpleFacets.getGroupedCounts(SimpleFacets.java:721)
        at org.apache.solr.request.SimpleFacets.getTermCounts(SimpleFacets.java:497)
        at org.apache.solr.request.SimpleFacets.getTermCounts(SimpleFacets.java:426)
        at org.apache.solr.request.SimpleFacets.lambda$getFacetFieldCounts$0(SimpleFacets.java:826)
        ... 46 more

Thanks
Jay Potharaju