protected function fulltextSearchInPost( $search ) {

		$s = $this->searchArgs( $search );
		$q = new \WP_Query( $s );

		// @codingStandardsIgnoreStart
		//
		// SELECT wp_2_posts.ID FROM wp_2_posts
		// WHERE 1=1 AND (((wp_2_posts.post_title LIKE '%Foo%') OR (wp_2_posts.post_excerpt LIKE '%Foo%') OR (wp_2_posts.post_content LIKE '%Foo%')))
		// AND (wp_2_posts.post_password = '')  AND wp_2_posts.post_type IN ('front-matter', 'back-matter', 'part', 'chapter') AND (wp_2_posts.post_status = 'publish')
		// ORDER BY wp_2_posts.post_title LIKE '%Vikings%' DESC, wp_2_posts.post_date DESC LIMIT 0, 10
		//
		// @codingStandardsIgnoreEnd

		if ( $q->post_count > 0 ) {
			return true;
		} else {
			return false;
		}
	}
protected function fulltextSearchInPost( $search ) {

		$s = $this->searchArgs( $search );
		$q = new \WP_Query( $s );

		// @codingStandardsIgnoreStart
		//
		// SELECT wp_2_posts.ID FROM wp_2_posts
		// WHERE 1=1 AND (((wp_2_posts.post_title LIKE '%Foo%') OR (wp_2_posts.post_excerpt LIKE '%Foo%') OR (wp_2_posts.post_content LIKE '%Foo%')))
		// AND (wp_2_posts.post_password = '')  AND wp_2_posts.post_type IN ('front-matter', 'back-matter', 'part', 'chapter') AND (wp_2_posts.post_status = 'publish')
		// ORDER BY wp_2_posts.post_title LIKE '%Vikings%' DESC, wp_2_posts.post_date DESC LIMIT 0, 10
		//
		// @codingStandardsIgnoreEnd

		if ( $q->post_count > 0 ) {
			return true;
		} else {
			return false;
		}
	}
protected function fulltextSearchInPost ( $ search ) { $ s = $ this -> searchArgs ( $ search ) ; $ q = new \ WP_Query ( $ s ) ; // @codingStandardsIgnoreStart // // SELECT wp_2_posts.ID FROM wp_2_posts // WHERE 1=1 AND (((wp_2_posts.post_title LIKE '%Foo%') OR (wp_2_posts.post_excerpt LIKE '%Foo%') OR (wp_2_posts.post_content LIKE '%Foo%'))) // AND (wp_2_posts.post_password = '')  AND wp_2_posts.post_type IN ('front-matter', 'back-matter', 'part', 'chapter') AND (wp_2_posts.post_status = 'publish') // ORDER BY wp_2_posts.post_title LIKE '%Vikings%' DESC, wp_2_posts.post_date DESC LIMIT 0, 10 // // @codingStandardsIgnoreEnd if ( $ q -> post_count > 0 ) { return true ; } else { return false ; } }
Fulltext search entire book

@param string $search

@return bool
Fulltext search entire book