• Resolved w3dev

    (@w3dev)


    I have SearchWP indexing TablePress content now via the following code:

    function init_tablepress_shortcodes_during_swp_indexing() {
    	// Bail if TablePress isn't active
    	if ( ! class_exists( 'TablePress' ) ) {
    		return;
    	}
    
    	// Load the frontend controller
    	TablePress::load_controller( 'frontend' );
    
    	// class methods aren't static so we need an instance to call them
    	$controller = new TablePress_Frontend_Controller();
    
    	// Register the shortcode
    	$controller->init_shortcodes();
    
    }
    add_action( 'searchwp\indexer\batch', 'init_tablepress_shortcodes_during_swp_indexing' );

    However, it is indexing table columns as ‘combined’ content. Ie. from what I can tell, it is just indexing the entire table as merged content.

    eg. instead of having “this” and “that” indexed, it is being indexed as “thisthat”.

    Is there anything in the code above that we can change to have TablePress render the table in a better way?

Viewing 1 replies (of 1 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    I’m afraid that I’m not the right person to ask here. I can only suggest to contact the SearchWP team about this issue. TablePress does not influence indexing in any way.

    Regards,
    Tobias

Viewing 1 replies (of 1 total)

The topic ‘SearchWP Integration’ is closed to new replies.