• Resolved tgaff2x

    (@tgaff2x)


    I have a custom field (using Toolset plugin), that is being indexed and is available as a facet on the front end.

    I noticed that when I saved a new post for the first time, the custom field was being saved correctly in WP admin but it wasn’t being sent through to Solr. If I reloaded the post in Admin and clicked update, this time the custom field did get sent through to solr.

    I played around a bit, and found that for me the get_post_custom within wpsolr-index-solr-client was being called before the custom field were saved.

    I found that if I adjusted the priority for
    add_action( ‘save_post’, ‘add_remove_document_to_solr_index’, 10, 3)

    from 10 to 11, it seemed to initiate the solr index at the correct time and push the custom fields into the solr index on first save. Any downside to increasing the priority number so it happens later?

    note: I am still using 8.6, but ran a quick test with 10 and seemed to have the same issue.

    https://www.ads-software.com/plugins/wpsolr-search-engine/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Custom Taxonomy’ is closed to new replies.