Facets items not filtering content and solr error on page refresh
- jnearsParticipant1 year ago #35785
Hi
I have set up an archive page for a custom post type with various facets. The custom post types display correctly when I first view the page but several of the items in one of the facets was returning 0 results which was incorrect.
I deleted the indexed data and then reindexed it but now none of the items in any of the facets have an effect on the results. Additionally, if I refresh the page with the facet string in the url bar bar I get an error (see below).
Also if I try to remove Taxonomies from the ‘Select data to search in’ under the Post type within ‘Data’ (2.2) and save it reverts back to the previous selections and I cannot seem to add or remove the taxonomies that are included.
Many thanks
Jonathan
Fatal error: Uncaught Solarium\Exception\HttpException: Solr HTTP error: Server Error (500) { “error”:{ “msg”:”Index -1 out of bounds for length 1″, “trace”:”java.lang.ArrayIndexOutOfBoundsException: Index -1 out of bounds for length 1\n\tat org.apache.lucene.util.packed.DirectMonotonicReader.get(DirectMonotonicReader.java:161)\n\tat org.apache.lucene.codecs.lucene90.Lucene90DocValuesProducer$TermsDict.getTermFromIndex(Lucene90DocValuesProducer.java:1125)\n\tat org.apache.lucene.codecs.lucene90.Lucene90DocValuesProducer$TermsDict.seekTermsIndex(Lucene90DocValuesProducer.java:1137)\n\tat org.apache.lucene.codecs.lucene90.Lucene90DocValuesProducer$TermsDict.seekBlock(Lucene90DocValuesProducer.java:1163)\n\tat org.apache.lucene.codecs.lucene90.Lucene90DocValuesProducer$TermsDict.seekCeil(Lucene90DocValuesProducer.java:1194)\n\tat org.apache.lucene.codecs.lucene90.Lucene90DocValuesProducer$BaseSortedDocValues.lookupTerm(Lucene90DocValuesProducer.java:987)\n\tat org.apache.lucene.index.SingletonSortedSetDocValues.lookupTerm(SingletonSortedSetDocValues.java:100)\n\tat org.apache.lucene.document.SortedSetDocValuesRangeQuery$1.scorer(SortedSetDocValuesRangeQuery.java:130)\n\tat org.apache.lucene.search.Weight.bulkScorer(Weight.java:166)\n\tat org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:753)\n\tat org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:541)\n\tat org.apache.solr.search.DocSetUtil.createDocSetGeneric(DocSetUtil.java:151)\n\tat org.apache.solr.search.DocSetUtil.createDocSet(DocSetUtil.java:138)\n\tat org.apache.solr.search.SolrIndexSearcher.getDocSetNC(SolrIndexSearcher.java:1262)\n\tat org.apache.solr.search.SolrIndexSearcher.lambda$getAndCacheDocSet$1(SolrIndexSearcher.java:935)\n\tat org.apache.solr.search.CaffeineCache.computeAsync(CaffeineCache.java:234)\n\tat org.apache.solr.search.CaffeineCache.computeIfAbsent(CaffeineCache.java:250)\n\tat org.apache.solr.search.SolrIndexSearcher.getAndCacheDocSet(SolrIndexSearcher.java:935)\n\tat org.apache.solr.search.SolrIndexSearcher.getPositiveDocSet(SolrIndexSearcher.java:897)\n\tat org.apache.solr.search.SolrIndexSearcher.getProcessedFilter(SolrIndexSearcher.java:1096)\n\tat org.apache.solr.search.SolrIndexSearcher.getDocListAndSetNC(SolrIndexSearcher.java:1746)\n\tat org.apache.solr.search.SolrIndexSearcher.getDocListC(SolrIndexSearcher.java:1505)\n\tat org.apache.solr.search.SolrIndexSearcher.search(SolrIndexSearcher.java:681)\n\tat org.apache.solr.handler.component.QueryComponent.doProcessUngroupedSearch(QueryComponent.java:1618)\n\tat org.apache.solr.handler.component.QueryComponent.process(QueryComponent.java:425)\n\tat org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:420)\n\tat org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:207)\n\tat org.apache.solr.core.SolrCore.execute(SolrCore.java:2866)\n\tat org.apache.solr.servlet.HttpSolrCall.execute(HttpSolrCall.java:887)\n\tat org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:606)\n\tat org.apache.solr.servlet.SolrDispatchFilter.dispatch(SolrDispatchFilter.java:239)\n\tat org.apache.solr.servlet.SolrDispatchFilter.lambda$doFilter$0(SolrDispatchFilter.java:207)\n\tat org.apache.solr.servlet.ServletUtils.traceHttpRequestExecution2(ServletUtils.java:257)\n\tat org.apache.solr.servlet.ServletUtils.rateLimitRequest(ServletUtils.java:227)\n\tat org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:202)\n\tat org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:184)\n\tat org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:201)\n\tat org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1601)\n\tat org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:548)\n\tat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)\n\tat org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:600)\n\tat org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)\n\tat org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235)\n\tat org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1624)\n\tat org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233)\n\tat org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1434)\n\tat org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188)\n\tat org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:501)\n\tat org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1594)\n\tat org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186)\n\tat org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1349)\n\tat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)\n\tat org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:191)\n\tat org.eclipse.jetty.server.handler.InetAccessHandler.handle(InetAccessHandler.java:177)\n\tat org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:146)\n\tat org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)\n\tat org.eclipse.jetty.rewrite.handler.RewriteHandler.handle(RewriteHandler.java:322)\n\tat org.eclipse.jetty.server.handler.gzip.GzipHandler.handle(GzipHandler.java:763)\n\tat org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)\n\tat org.eclipse.jetty.server.Server.handle(Server.java:516)\n\tat org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:400)\n\tat org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:645)\n\tat org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:392)\n\tat org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:277)\n\tat org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311)\n\tat org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105)\n\tat org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104)\n\tat org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:338)\n\tat org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:315)\n\tat org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:173)\n\tat org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:131)\n\tat org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:409)\n\tat org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:883)\n\tat org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1034)\n\tat java.base/java.lang.Thread.run(Thread.java:829)\n”, “code”:500}} in /var/www/vhosts/alpha-understandingsociety.co.uk/httpdocs/wp-content/plugins/wpsolr-pro/wpsolr/core/vendor/solarium/solarium/src/Core/Query/Result/Result.php:73 Stack trace: #0 /var/www/vhosts/alpha-understandingsociety.co.uk/httpdocs/wp-content/plugins/wpsolr-pro/wpsolr/core/vendor/solarium/solarium/src/Core/Client/Client.php(788): Solarium\Core\Query\Result\Result->__construct() #1 /var/www/vhosts/alpha-understandingsociety.co.uk/httpdocs/wp-content/plugins/wpsolr-pro/wpsolr/core/vendor/solarium/solarium/src/Core/Client/Client.php(818): Solarium\Core\Client\Client->createResult() #2 /var/www/vhosts/alpha-understandingsociety.co.uk/httpdocs/wp-content/plugins/wpsolr-pro/wpsolr/core/classes/engines/solarium/class-wpsolr-solariumclient.php(31): Solarium\Core\Client\Client->execute() #3 /var/www/vhosts/alpha-understandingsociety.co.uk/httpdocs/wp-content/plugins/wpsolr-pro/wpsolr/core/classes/engines/class-wpsolr-abstractsearchclient-root.php(1075): wpsolr\core\classes\engines\solarium\WPSOLR_SearchSolariumClient->search_engine_client_execute() #4 /var/www/vhosts/alpha-understandingsociety.co.uk/httpdocs/wp-content/plugins/wpsolr-pro/wpsolr/core/classes/engines/class-wpsolr-abstractsearchclient-root.php(1025): wpsolr\core\classes\engines\WPSOLR_AbstractSearchClient_Root->execute_query() #5 /var/www/vhosts/alpha-understandingsociety.co.uk/httpdocs/wp-content/plugins/wpsolr-pro/wpsolr/core/classes/ui/class-wpsolr-query.php(508): wpsolr\core\classes\engines\WPSOLR_AbstractSearchClient_Root->execute_wpsolr_query() #6 /var/www/vhosts/alpha-understandingsociety.co.uk/httpdocs/wp-includes/class-wp-query.php(3749): wpsolr\core\classes\ui\WPSOLR_Query->get_posts() #7 /var/www/vhosts/alpha-understandingsociety.co.uk/httpdocs/wp-includes/class-wp.php(663): WP_Query->query() #8 /var/www/vhosts/alpha-understandingsociety.co.uk/httpdocs/wp-includes/class-wp.php(783): WP->query_posts() #9 /var/www/vhosts/alpha-understandingsociety.co.uk/httpdocs/wp-includes/functions.php(1332): WP->main() #10 /var/www/vhosts/alpha-understandingsociety.co.uk/httpdocs/wp-blog-header.php(16): wp() #11 /var/www/vhosts/alpha-understandingsociety.co.uk/httpdocs/index.php(17): require(‘…’) #12 {main} thrown in /var/www/vhosts/alpha-understandingsociety.co.uk/httpdocs/wp-content/plugins/wpsolr-pro/wpsolr/core/vendor/solarium/solarium/src/Core/Query/Result/Result.php on line 73
jnearsParticipant1 year ago #35816I had left it blank (default), which the software says is 50. I changed to 30, and this appears to have resolved the issue, although I do need more than 30 to show. Why would this cause an issue, and can I up it to 50? Is this up to 50 facet items per filter, as some of our filters would have around 50 items and others maybe only 10?
wpsolrKeymaster1 year ago #35817The facet error comes from the Solr server. Probably not enough resources to calculate too many facets containing too many items.
You can limit the number of facets, or the number of items, or ask your Solr hosting provider about the error trace.
For the other issue, please create a new topic.
You must be logged in to reply to this topic.