AW: AW: group.facet=true and facet on field of type int -> org.apache.solr.common.SolrException: Exception during facet.field
Hi Tomás! Many thanks for responding - I agree, I'd say https://issues.apache.org/jira/browse/SOLR-7495 is definitely the same issue. I am working around that issue by using a STR-Field and copyField. Thanks again, Sebastian -Ursprüngliche Nachricht- Von: Tomás Fernández Löbbe [mailto:tomasflo...@gmail.com] Gesendet: Dienstag, 19. Juli 2016 12:59 An: solr-user@lucene.apache.org Betreff: Re: AW: group.facet=true and facet on field of type int -> org.apache.solr.common.SolrException: Exception during facet.field Hi Sebastian, This looks like https://issues.apache.org/jira/browse/SOLR-7495 On Jul 19, 2016 3:46 AM, "Sebastian Riemer"wrote: > May I respectfully refer again to a question I posted last week? > > Thank you very much and a nice day to you all! > > Sebastian > - > > > > > > > > Hi all, > > Tested on Solr 6.1.0 (as well as 5.4.0 and 5.5.0) using the "techproducts" > example the following query throws the same exception as in my > original > question: > > To reproduce: > 1) set up the techproducts example: > solr start -e techproducts -noprompt > 2) go to Solr Admin: > http://localhost:8983/solr/#/techproducts/query > 3) in "Raw Query Parameters" enter: > > group=true=true=true=manu_id_s > acet=true=popularity > 4) Hit "Execute Query" > > [..] > "error":{ > "metadata":[ > "error-class","org.apache.solr.common.SolrException", > "root-error-class","java.lang.IllegalStateException"], > "msg":"Exception during facet.field: popularity", > "trace":"org.apache.solr.common.SolrException: Exception during > facet.field: popularity\r\n\tat > org.apache.solr.request.SimpleFacets.lambda$getFacetFieldCounts$50(Sim > pleFacets.java:739)\r\n\tat > org.apache.solr.request.SimpleFacets$$Lambda$37/2022187546.call(Unknow > n > Source)\r\n\tat > java.util.concurrent.FutureTask.run(FutureTask.java:266)\r\n\tat > org.apache.solr.request.SimpleFacets$2.execute(SimpleFacets.java:672)\ > r\n\tat > org.apache.solr.request.SimpleFacets.getFacetFieldCounts(SimpleFacets. > java:748)\r\n\tat > org.apache.solr.handler.component.FacetComponent.getFacetCounts(FacetC > omponent.java:321)\r\n\tat > org.apache.solr.handler.component.FacetComponent.process(FacetComponen > t.java:265)\r\n\tat > org.apache.solr.handler.component.SearchHandler.handleRequestBody(Sear > chHandler.java:293)\r\n\tat > org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandle > rBase.java:156)\r\n\tat > org.apache.solr.core.SolrCore.execute(SolrCore.java:2036)\r\n\tat > org.apache.solr.servlet.HttpSolrCall.execute(HttpSolrCall.java:657)\r\ > n\tat > org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:464)\r\n\t > at > org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter > .java:257)\r\n\tat > org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter > .java:208)\r\n\tat > org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletH > andler.java:1668)\r\n\tat > org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java: > 581)\r\n\tat > org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.ja > va:143)\r\n\tat > org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java > :548)\r\n\tat > org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandle > r.java:226)\r\n\tat > org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandle > r.java:1160)\r\n\tat > org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:5 > 11)\r\n\tat > org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler > .java:185)\r\n\tat > org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler > .java:1092)\r\n\tat > org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.ja > va:141)\r\n\tat > org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(Conte > xtHandlerCollection.java:213)\r\n\tat > org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerColle > ction.java:119)\r\n\tat > org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper. > java:134)\r\n\tat > org.eclipse.jetty.server.Server.handle(Server.java:518)\r\n\tat > org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:308)\r\n\ > tat > org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java > :244)\r\n\tat > org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(Abstrac > tConnection.java:273)\r\n\tat > org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95)\r\n\t > at > org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint > .java:93)\r\n\tat > org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceAn > dRun(ExecuteProduceConsume.java:246)\r\n\tat > org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(Execu > teProduceConsume.java:156)\r\n\tat >
Re: AW: group.facet=true and facet on field of type int -> org.apache.solr.common.SolrException: Exception during facet.field
Hi Sebastian, This looks like https://issues.apache.org/jira/browse/SOLR-7495 On Jul 19, 2016 3:46 AM, "Sebastian Riemer"wrote: > May I respectfully refer again to a question I posted last week? > > Thank you very much and a nice day to you all! > > Sebastian > - > > > > > > > > Hi all, > > Tested on Solr 6.1.0 (as well as 5.4.0 and 5.5.0) using the "techproducts" > example the following query throws the same exception as in my original > question: > > To reproduce: > 1) set up the techproducts example: > solr start -e techproducts -noprompt > 2) go to Solr Admin: > http://localhost:8983/solr/#/techproducts/query > 3) in "Raw Query Parameters" enter: > > group=true=true=true=manu_id_s=true=popularity > 4) Hit "Execute Query" > > [..] > "error":{ > "metadata":[ > "error-class","org.apache.solr.common.SolrException", > "root-error-class","java.lang.IllegalStateException"], > "msg":"Exception during facet.field: popularity", > "trace":"org.apache.solr.common.SolrException: Exception during > facet.field: popularity\r\n\tat > org.apache.solr.request.SimpleFacets.lambda$getFacetFieldCounts$50(SimpleFacets.java:739)\r\n\tat > org.apache.solr.request.SimpleFacets$$Lambda$37/2022187546.call(Unknown > Source)\r\n\tat > java.util.concurrent.FutureTask.run(FutureTask.java:266)\r\n\tat > org.apache.solr.request.SimpleFacets$2.execute(SimpleFacets.java:672)\r\n\tat > org.apache.solr.request.SimpleFacets.getFacetFieldCounts(SimpleFacets.java:748)\r\n\tat > org.apache.solr.handler.component.FacetComponent.getFacetCounts(FacetComponent.java:321)\r\n\tat > org.apache.solr.handler.component.FacetComponent.process(FacetComponent.java:265)\r\n\tat > org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:293)\r\n\tat > org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:156)\r\n\tat > org.apache.solr.core.SolrCore.execute(SolrCore.java:2036)\r\n\tat > org.apache.solr.servlet.HttpSolrCall.execute(HttpSolrCall.java:657)\r\n\tat > org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:464)\r\n\tat > org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:257)\r\n\tat > org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:208)\r\n\tat > org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1668)\r\n\tat > org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:581)\r\n\tat > org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)\r\n\tat > org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)\r\n\tat > org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)\r\n\tat > org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1160)\r\n\tat > org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:511)\r\n\tat > org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)\r\n\tat > org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1092)\r\n\tat > org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)\r\n\tat > org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:213)\r\n\tat > org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:119)\r\n\tat > org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134)\r\n\tat > org.eclipse.jetty.server.Server.handle(Server.java:518)\r\n\tat > org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:308)\r\n\tat > org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:244)\r\n\tat > org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:273)\r\n\tat > org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95)\r\n\tat > org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93)\r\n\tat > org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceAndRun(ExecuteProduceConsume.java:246)\r\n\tat > org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:156)\r\n\tat > org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:654)\r\n\tat > org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:572)\r\n\tat > java.lang.Thread.run(Thread.java:745)\r\nCaused by: > java.lang.IllegalStateException: unexpected docvalues type NUMERIC for > field 'popularity' (expected=SORTED). Use UninvertingReader or index with > docvalues.\r\n\tat > org.apache.lucene.index.DocValues.checkField(DocValues.java:212)\r\n\tat > org.apache.lucene.index.DocValues.getSorted(DocValues.java:264)\r\n\tat > org.apache.lucene.search.grouping.term.TermGroupFacetCollector$SV.doSetNextReader(TermGroupFacetCollector.java:129)\r\n\tat >
AW: group.facet=true and facet on field of type int -> org.apache.solr.common.SolrException: Exception during facet.field
May I respectfully refer again to a question I posted last week? Thank you very much and a nice day to you all! Sebastian - Hi all, Tested on Solr 6.1.0 (as well as 5.4.0 and 5.5.0) using the "techproducts" example the following query throws the same exception as in my original question: To reproduce: 1) set up the techproducts example: solr start -e techproducts -noprompt 2) go to Solr Admin: http://localhost:8983/solr/#/techproducts/query 3) in "Raw Query Parameters" enter: group=true=true=true=manu_id_s=true=popularity 4) Hit "Execute Query" [..] "error":{ "metadata":[ "error-class","org.apache.solr.common.SolrException", "root-error-class","java.lang.IllegalStateException"], "msg":"Exception during facet.field: popularity", "trace":"org.apache.solr.common.SolrException: Exception during facet.field: popularity\r\n\tat org.apache.solr.request.SimpleFacets.lambda$getFacetFieldCounts$50(SimpleFacets.java:739)\r\n\tat org.apache.solr.request.SimpleFacets$$Lambda$37/2022187546.call(Unknown Source)\r\n\tat java.util.concurrent.FutureTask.run(FutureTask.java:266)\r\n\tat org.apache.solr.request.SimpleFacets$2.execute(SimpleFacets.java:672)\r\n\tat org.apache.solr.request.SimpleFacets.getFacetFieldCounts(SimpleFacets.java:748)\r\n\tat org.apache.solr.handler.component.FacetComponent.getFacetCounts(FacetComponent.java:321)\r\n\tat org.apache.solr.handler.component.FacetComponent.process(FacetComponent.java:265)\r\n\tat org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:293)\r\n\tat org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:156)\r\n\tat org.apache.solr.core.SolrCore.execute(SolrCore.java:2036)\r\n\tat org.apache.solr.servlet.HttpSolrCall.execute(HttpSolrCall.java:657)\r\n\tat org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:464)\r\n\tat org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:257)\r\n\tat org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:208)\r\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1668)\r\n\tat org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:581)\r\n\tat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)\r\n\tat org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)\r\n\tat org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)\r\n\tat org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1160)\r\n\tat org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:511)\r\n\tat org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)\r\n\tat org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1092)\r\n\tat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)\r\n\tat org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:213)\r\n\tat org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:119)\r\n\tat org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134)\r\n\tat org.eclipse.jetty.server.Server.handle(Server.java:518)\r\n\tat org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:308)\r\n\tat org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:244)\r\n\tat org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:273)\r\n\tat org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95)\r\n\tat org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93)\r\n\tat org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceAndRun(ExecuteProduceConsume.java:246)\r\n\tat org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:156)\r\n\tat org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:654)\r\n\tat org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:572)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\nCaused by: java.lang.IllegalStateException: unexpected docvalues type NUMERIC for field 'popularity' (expected=SORTED). Use UninvertingReader or index with docvalues.\r\n\tat org.apache.lucene.index.DocValues.checkField(DocValues.java:212)\r\n\tat org.apache.lucene.index.DocValues.getSorted(DocValues.java:264)\r\n\tat org.apache.lucene.search.grouping.term.TermGroupFacetCollector$SV.doSetNextReader(TermGroupFacetCollector.java:129)\r\n\tat org.apache.lucene.search.SimpleCollector.getLeafCollector(SimpleCollector.java:33)\r\n\tat org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:660)\r\n\tat org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:473)\r\n\tat
AW: group.facet=true and facet on field of type int -> org.apache.solr.common.SolrException: Exception during facet.field
Hi all, Tested on Solr 6.1.0 (as well as 5.4.0 and 5.5.0) using the "techproducts" example the following query throws the same exception as in my original question: To reproduce: 1) set up the techproducts example: solr start -e techproducts -noprompt 2) go to Solr Admin: http://localhost:8983/solr/#/techproducts/query 3) in "Raw Query Parameters" enter: group=true=true=true=manu_id_s=true=popularity 4) Hit "Execute Query" [..] "error":{ "metadata":[ "error-class","org.apache.solr.common.SolrException", "root-error-class","java.lang.IllegalStateException"], "msg":"Exception during facet.field: popularity", "trace":"org.apache.solr.common.SolrException: Exception during facet.field: popularity\r\n\tat org.apache.solr.request.SimpleFacets.lambda$getFacetFieldCounts$50(SimpleFacets.java:739)\r\n\tat org.apache.solr.request.SimpleFacets$$Lambda$37/2022187546.call(Unknown Source)\r\n\tat java.util.concurrent.FutureTask.run(FutureTask.java:266)\r\n\tat org.apache.solr.request.SimpleFacets$2.execute(SimpleFacets.java:672)\r\n\tat org.apache.solr.request.SimpleFacets.getFacetFieldCounts(SimpleFacets.java:748)\r\n\tat org.apache.solr.handler.component.FacetComponent.getFacetCounts(FacetComponent.java:321)\r\n\tat org.apache.solr.handler.component.FacetComponent.process(FacetComponent.java:265)\r\n\tat org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:293)\r\n\tat org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:156)\r\n\tat org.apache.solr.core.SolrCore.execute(SolrCore.java:2036)\r\n\tat org.apache.solr.servlet.HttpSolrCall.execute(HttpSolrCall.java:657)\r\n\tat org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:464)\r\n\tat org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:257)\r\n\tat org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:208)\r\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1668)\r\n\tat org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:581)\r\n\tat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)\r\n\tat org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)\r\n\tat org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)\r\n\tat org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1160)\r\n\tat org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:511)\r\n\tat org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)\r\n\tat org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1092)\r\n\tat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)\r\n\tat org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:213)\r\n\tat org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:119)\r\n\tat org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134)\r\n\tat org.eclipse.jetty.server.Server.handle(Server.java:518)\r\n\tat org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:308)\r\n\tat org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:244)\r\n\tat org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:273)\r\n\tat org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95)\r\n\tat org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93)\r\n\tat org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceAndRun(ExecuteProduceConsume.java:246)\r\n\tat org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:156)\r\n\tat org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:654)\r\n\tat org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:572)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\nCaused by: java.lang.IllegalStateException: unexpected docvalues type NUMERIC for field 'popularity' (expected=SORTED). Use UninvertingReader or index with docvalues.\r\n\tat org.apache.lucene.index.DocValues.checkField(DocValues.java:212)\r\n\tat org.apache.lucene.index.DocValues.getSorted(DocValues.java:264)\r\n\tat org.apache.lucene.search.grouping.term.TermGroupFacetCollector$SV.doSetNextReader(TermGroupFacetCollector.java:129)\r\n\tat org.apache.lucene.search.SimpleCollector.getLeafCollector(SimpleCollector.java:33)\r\n\tat org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:660)\r\n\tat org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:473)\r\n\tat org.apache.solr.request.SimpleFacets.getGroupedCounts(SimpleFacets.java:638)\r\n\tat org.apache.solr.request.SimpleFacets.getTermCounts(SimpleFacets.java:443)\r\n\tat