public function parseSearch($query, $type='default') {
		// if there's a colon in the search, assume that the user is doing a custom power search
		if (strpos($query, ':')) {
			return $query;
		}

		if (isset($this->queryBuilders[$type])) {
			return $this->queryBuilders[$type]->parse($query);
		}

		$lucene = implode(':' . $query . ' OR ', self::$default_query_fields) . ':' . $query;
		return $lucene;
	}
public function parseSearch($query, $type='default') {
		// if there's a colon in the search, assume that the user is doing a custom power search
		if (strpos($query, ':')) {
			return $query;
		}

		if (isset($this->queryBuilders[$type])) {
			return $this->queryBuilders[$type]->parse($query);
		}

		$lucene = implode(':' . $query . ' OR ', self::$default_query_fields) . ':' . $query;
		return $lucene;
	}
public function parseSearch ( $ query , $ type = 'default' ) { // if there's a colon in the search, assume that the user is doing a custom power search if ( strpos ( $ query , ':' ) ) { return $ query ; } if ( isset ( $ this -> queryBuilders [ $ type ] ) ) { return $ this -> queryBuilders [ $ type ] -> parse ( $ query ) ; } $ lucene = implode ( ':' . $ query . ' OR ' , self :: $ default_query_fields ) . ':' . $ query ; return $ lucene ; }
Parse a raw user search string into a query appropriate for
execution.

@param String $query
Parse a raw user search string into a query appropriate for execution .