• Hi, Team I have faced one issue in site level search functionality,
    Eg: Actually i have searched with some text like: Liquid in search it is giving found_posts=19 and as per this max number of pages are set to 2 (due to posts_per_page=10) but the actually results are 114 (Including text found in post titles and post content etc), I think found_posts are manipulated in this file :solr-power\includes\class-solrpower-wp-query.php file using filters like:
    add_filter( ‘posts_request’, array( $this, ‘posts_request’ ), 10, 2 );
    // Nukes the FOUND_ROWS() database query.
    add_filter( ‘found_posts_query’, array( $this, ‘found_posts_query’ ), 5, 2 );
    add_filter( ‘found_posts’, array( $this, ‘found_posts’ ), 5, 2 );
    $wp_query found_posts/Max number of pages manipulated here so it is giving different search results, can you please suggest here.

    Please let me know any other clarifications required here please.

    Thanks,
    Thirumala

  • The topic ‘Max number of pages and Found posts are not matched with actual results’ is closed to new replies.