src/Query.php
public function search($q = NULL, $settings = NULL)
    {

        if ($q) {

            $search = new Search($this, $q, $settings);

            if (!is_callback_function($settings)) {
                $search->boost($settings ? $settings : 1);
            }

            $search->build();

        }

        return $this;
    }
public function search($q = NULL, $settings = NULL)
    {

        if ($q) {

            $search = new Search($this, $q, $settings);

            if (!is_callback_function($settings)) {
                $search->boost($settings ? $settings : 1);
            }

            $search->build();

        }

        return $this;
    }
public function search ( $ q = NULL , $ settings = NULL ) { if ( $ q ) { $ search = new Search ( $ this , $ q , $ settings ) ; if ( ! is_callback_function ( $ settings ) ) { $ search -> boost ( $ settings ? $ settings : 1 ) ; } $ search -> build ( ) ; } return $ this ; }
Search the entire document fields
@param null $q
@return $this
Search the entire document fields