• Resolved pstidsen

    (@pstidsen)


    Hi there,

    This is a followup on this thread: https://www.ads-software.com/support/topic/speed-up-search-2/ which I cannot reply to since it’s closed (and that seems fair after more than half a year). Howver, thanks for your reply. Due to several reasons this matter has not been prioritized. Now we are ready to handle it.

    We use the below code to proces the Relevanssi search. But for some reason the numberposts argument is not respected. Do you have any ideas?

    	public function getSearchProducts($query){
    		$args = array(
    			'post_type' => 'product',
    			'numberposts' => 10,
    			's' => $query,
    		);
    		$product_query = new WP_Query();
    		$product_query->parse_query( $args );
    		relevanssi_do_query( $product_query );
    		$products = $product_query->posts;
    		
    		return $products;
    	}

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Speed up search 2.0’ is closed to new replies.