Forum Replies Created
- leomoonParticipant4 years, 6 months ago in reply to: Solar search in custom product loop #14539
Indeed, that is exactly what happens. Is there a way to preserve this information? It would enable use of WPSolr on custom pages, especially for example on landing pages where every millisecond matters as far as both SEO and user experience is concerned. On my landing page, I list all the new product arrivals, on-sales and fetured products. If all these were displayed via WPSolr, I presume we would gain something in speed.
leomoonParticipant4 years, 6 months ago in reply to: Solar search in custom product loop #14536After adding $is_replace_by_wpsolr_query logic to return true in case my custom page is queried, the results are all fine, but for some reason, the page gets rendered down to page.php instead of custom page template (in my case template-new-arrivals.php).
Any idea why custom template rendering is lost when query is replaced by wpsolr query?
leomoonParticipant4 years, 7 months ago in reply to: product-archive.php and empty results when plugin active #14473All my products are simple products. Check out the same link right now with WPSolr plugin disabled.
The pages that are empty probably have some posts with some data missing (book author for example) which are rendered as empty strings without WPSolr, but when WPSolr is active, they end up breaking the loop.
I’ll do some debugging at your get_posts override and see what is specific about this data and get back to you.
leomoonParticipant4 years, 7 months ago in reply to: Diacritic character replacement search does not work properly #14463Thank you. I added
<filter class=”solr.ASCIIFoldingFilterFactory” preserveOriginal=”false” />
to
<analyzer type=”index”>and
<analyzer type=”query”>
sections and now all characters are rendered down properly.
leomoonParticipant4 years, 8 months ago in reply to: Sorting does not work on quicksearch results archives #13871Excellent. It works!
leomoonParticipant4 years, 8 months ago in reply to: Sorting does not work on quicksearch results archives #13869Do you have any update on this? Or maybe you could point me where should I debug?
leomoonParticipant4 years, 9 months ago in reply to: Sorting does not work on quicksearch results archives #13687I’ve been trying to debug this all this time – yes, replace sort option was on.
Apparently, on custom taxonomy based archive pages, the $wp-query global object is not replaced by wpsolr’s, as it is on category and fauceted search results.
Also, I noticed that function wpsolr_filter_is_replace_by_wpsolr_query returns true for category pages, but false if the page displays custom taxonomy results.leomoonParticipant4 years, 10 months ago in reply to: infinitescroll not working on version 21.5 #12627Ajax load more seems a bit involved as it is generic, not woocommerce specifc. But I installed WooCommerce Load More Products, which works out of the box, except that the product count on top shows 0 even tough the products are displayed, and, in fauceted search, it ignores the selected faucets when loading more.
It would be great to make this integration part of the WPSOLR plugin. Should I open a new feature request?
leomoonParticipant4 years, 10 months ago in reply to: Indexing error: multiple values on _stock_status_s #12622You are right, exactly 25 out of 63000+ products had duplicated stock_status meta. I have no idea how this came to be, but after doing manual cleanup, all is good now. Thanks!
leomoonParticipantleomoonParticipant4 years, 10 months ago in reply to: infinitescroll not working on version 21.5 #12601I may be doing something wrong, but infinite scroll never worked for me and it does not work now.
Apparently, the elements
info.pagination_selector (“#pagination-flickr”)info.results_selector (“.results-by-facets”)
…do not exist on my page. Am I supposed to choose these selectors somewhere?
The site is at https://test.antikvarijatknjiga.hr
leomoonParticipant4 years, 10 months ago in reply to: Indexing error: multiple values on _stock_status_s #12589Status is definitely not a taxonomy – only a custom field. It is not listed under taxonomy choices. And for some reason this multiplication of stock_status field value does not happen on all products. I am able to index some 4000 without any problem before it runs into this issue.
leomoonParticipant4 years, 10 months ago in reply to: Send data tab takes 22 minutes to load #12569That works well now – thanks, especially because of the speed by which you resolve these.
There is one more issue left. For some reason, the _stock_status_s field, which I index as text, sortable in order to be able to put in-stock books first sometimes gets sent for indexing as having multiple values. I could not find a pattern, but here is a fragment of the debug info:
https://1drv.ms/t/s!Ah6mDhPS2VbWiKpkHIKUeVYFTYewlQ
Both of these have status out of stock, but the first one, has [outofstock, outofstock] and the second one has just [outofstock].
I checked the database, I checked product->data contents for this failing SKU (59747), but nowhere is stock_status anything but a single string ‘outofstock’. I am not sure why it gets multiplied before it gets sent for indexing?leomoonParticipant4 years, 10 months ago in reply to: Send data tab takes 22 minutes to load #12538Here is the output of the whole indexing process:
leomoonParticipant4 years, 10 months ago in reply to: Send data tab takes 22 minutes to load #12537Following your instructions, I started debugged indexing of only taxonomy 1 at the time. It actually works for a while, but then, when it encounters a term that has post_modified date, it fails with that error above. The first 100 or so terms had null for post_modified and they were indexed ok. I saved here a query that grabs a few terms that get indexed well and then it goes into those that don’t. The first one that fails is the one with has date_modified field of non-null value.