WPSolr logo
Search
Close this search box.

Forum Replies Created

  • leomoon
    Participant
    4 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.

    leomoon
    Participant
    4 years, 6 months ago in reply to: Solar search in custom product loop #14536

    After 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?

    leomoon
    Participant

    All 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.

    leomoon
    Participant

    Thank 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.

    leomoon
    Participant

    Excellent. It works!

    leomoon
    Participant

    Do you have any update on this? Or maybe you could point me where should I debug?

    leomoon
    Participant

    I’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.

    leomoon
    Participant
    4 years, 10 months ago in reply to: infinitescroll not working on version 21.5 #12627

    Ajax 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?

    leomoon
    Participant
    4 years, 10 months ago in reply to: Indexing error: multiple values on _stock_status_s #12622

    You 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!

    leomoon
    Participant
    leomoon
    Participant
    4 years, 10 months ago in reply to: infinitescroll not working on version 21.5 #12601

    I 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

    leomoon
    Participant
    4 years, 10 months ago in reply to: Indexing error: multiple values on _stock_status_s #12589

    Status 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.

    leomoon
    Participant
    4 years, 10 months ago in reply to: Send data tab takes 22 minutes to load #12569

    That 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?

    leomoon
    Participant
    4 years, 10 months ago in reply to: Send data tab takes 22 minutes to load #12538

    Here is the output of the whole indexing process:

    https://1drv.ms/t/s!Ah6mDhPS2VbWiKpjjP3g1WKtwlhq3g

    leomoon
    Participant
    4 years, 10 months ago in reply to: Send data tab takes 22 minutes to load #12537

    Following 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.

    https://1drv.ms/t/s!Ah6mDhPS2VbWiKpiQ8bppdZT1cwoHw

Viewing 15 posts - 16 through 30 (of 86 total)