• Hello,

    I have this plugin installed on a site that is built heavily using ACF Flexible Content Fields. There are also simply a ton of fields on this site. For the life of me I cannot get the index to complete. If I change Custom fields to none on the indexing tab then the index speeds through and works, but the moment that I do anything else nothing works. Here are the acf flexible fields that I want to be used in the index (and excerpts)

    elements > content_element > content_blocks > text_content
    page_builder_elements > content_element > text_content
    page_builder_elements > columned_content > content_blocks > text_content

    I tried adding this to my functions.php file, but no luck….

    function rlv_only_text_fields( $custom_fields ) {
      return array_filter(
        $custom_fields,
        function( $field ) {
          return '_content' === substr( $field, -8 );
        }
      );
    }
    add_filter( 'relevanssi_index_custom_fields', 'rlv_only_text_fields' );

    Any help would be greatly appreciated to get this index to run.

    Thanks,
    patrick

    • This topic was modified 4 years, 2 months ago by sasserp01.
Viewing 1 replies (of 1 total)
  • Plugin Author Mikko Saari

    (@msaari)

    That looks correct to me. Have you checked what the return array for your function contains? Does it have the correct fields and nothing else?

Viewing 1 replies (of 1 total)

The topic ‘Site Never Indexes – Index Won’t Finish’ is closed to new replies.