public function textSearch($query = null) {
		if ($query) {
			if (strpos($query, 'type@') === 0) {
				$query = str_replace('type@', '', $query);
				return ['Log.type' => $query];
			}

			$escapedQuery = "'" . $query . "'"; // for now - $this->getDataSource()->value($query);
			return ["MATCH (message) AGAINST ($escapedQuery)"];
		}
		return [];
	}
public function textSearch($query = null) {
		if ($query) {
			if (strpos($query, 'type@') === 0) {
				$query = str_replace('type@', '', $query);
				return ['Log.type' => $query];
			}

			$escapedQuery = "'" . $query . "'"; // for now - $this->getDataSource()->value($query);
			return ["MATCH (message) AGAINST ($escapedQuery)"];
		}
		return [];
	}
public function textSearch ( $ query = null ) { if ( $ query ) { if ( strpos ( $ query , 'type@' ) === 0 ) { $ query = str_replace ( 'type@' , '' , $ query ) ; return [ 'Log.type' => $ query ] ; } $ escapedQuery = "'" . $ query . "'" ; // for now - $this->getDataSource()->value($query); return [ "MATCH (message) AGAINST ($escapedQuery)" ] ; } return [ ] ; }
Return a text search on message

@param string|null $query search string or `type@...`
@return array Conditions
Return a text search on message