• Resolved stevecurrey

    (@stevecurrey)


    Hi

    I cannot get the indexing to work on my site.

    I am using WooCommerce and selected “Product” and “Product Variation” under post type.

    I have also added a custom field.

    I have disabled the shortcode option.

    The indexing appears to run but then around half way through, the following happens:

    Indexed 28 posts (total 948), processed 948 / 2035.
    Indexed 28 posts (total 976), processed 976 / 2035.
    Indexed 28 posts (total 1004), processed 1004 / 2035.
    Indexed 22 posts (total 1026), processed 1026 / 2035.
    Indexed 0 posts (total 1026), processed 1026 / 2035.
    Indexed 0 posts (total 1026), processed 1026 / 2035.
    Indexed 0 posts (total 1026), processed 1026 / 2035.
    Indexed 0 posts (total 1026), processed 1026 / 2035.
    Indexed 0 posts (total 1026), processed 1026 / 2035.
    Indexed 27 posts (total 1053), processed 1053 / 2035.
    Indexed 0 posts (total 1053), processed 1053 / 2035.
    Indexed 0 posts (total 1053), processed 1053 / 2035.
    Indexed 0 posts (total 1053), processed 1053 / 2035.
    Indexed 0 posts (total 1053), processed 1053 / 2035.

    It then just continues “Indexed 0 posts”.

    I try to refresh the page and use the “Index Unindexed Posts” but to no avail.

    Any help greatly appreciated.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter stevecurrey

    (@stevecurrey)

    I would add that when I deselect product variations, the indexing is able to complete (around 200 records).

    Thank you

    Plugin Author Mikko Saari

    (@msaari)

    This problem is caused by post exclusions; Relevanssi can sometimes get stuck when too many posts are excluded from the index and the indexer only starts getting excluded posts and drowns in them. If the exclusions are done using relevanssi_do_not_index, the solution is usually to move the exclusion to relevanssi_indexing_restriction.

    However, in most cases, you don’t actually want to index product variations in WooCommerce, because the theme will restrict the search to just products no matter what you index.

    So it’s quite likely you don’t actually need to index the product variations. If you have content in the variations you’d like to include in the search, it’s often best to index it as part of the main product. See here: https://www.relevanssi.com/knowledge-base/indexing-product-variation-skus-main-product/

    Thread Starter stevecurrey

    (@stevecurrey)

    Hi Mikko,

    Many thanks for your reply.

    It was mainly for using Relevanssi to search for custom fields in my variations (SKU / Manufacturer Code / EAN).

    In the end, what I did was to update the custom field for the main product to include an amalgamation of the child products custom fields so the EAN for the parent product would look like this:

    80416454104|80416454105|80416454106|80416454107

    This means that I can now search for variations without having to index them.

    Hopefully this might help someone who is facing the same issue.

    All the best and thank you for a great plugin.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Indexing fails’ is closed to new replies.