I have a page with a custom wp_query, as seen below. It pulls in all the child pages of the current page. But I am having trouble figuring out how you can add content from this page to the Relevanssi index, so that the content on this page with the custom query shows in the search results. Seems like relevanssi_do_query($your_query_object) should be the ticket but nothing I have tried with that has worked.
<?php $childpage_query = new WP_Query( array( 'posts_per_page' => -1, 'post_type' => 'page', 'post_parent' => $post->ID, 'orderby' => 'menu_order', 'order' => 'ASC' ) ); while ($childpage_query->have_posts()) : $childpage_query->the_post(); ?> <div class="glossary-block"> <?php the_content(); ?> </div> <!-- /glossary-block --> <?php endwhile; // end of the loop. ?>