Метод |
Описание |
|
addBindingsToQuery ( Builder $query, array $bindings ) |
Adds the bindings to the query. |
|
addSelectsToQuery ( Builder $query, array $selects ) |
Puts all the select clauses to the main query. |
|
filterQueryWithRelevance ( Builder $query, array $selects, float $relevance_count ) |
Adds the relevance filter to the query. |
|
getCaseCompare ( string $column, string $compare, float $relevance ) : string |
Returns the comparison string. |
|
getColumns ( ) : array |
Returns the search columns. |
|
getDatabaseDriver ( ) : array |
Returns database driver Ex: mysql, pgsql, sqlite. |
|
getGroupBy ( ) : array |
Returns whether or not to keep duplicates. |
|
getJoins ( ) : array |
Returns the tables that are to be joined. |
|
getSearchQueriesForColumn ( Builder $query, string $column, float $relevance, array $words ) : array |
Returns the search queries for the specified column. |
|
getSearchQuery ( Builder $query, string $column, string $relevance, array $words, float $relevance_multiplier, string $pre_word = '', string $post_word = '' ) : string |
Returns the sql string for the given parameters. |
|
makeGroupBy ( Builder $query ) |
Makes the query not repeat the results. |
|
makeJoins ( Builder $query ) |
Adds the sql joins to the query. |
|
mergeQueries ( Builder $clone, Builder $original ) |
Merge our cloned query builder with the original one. |
|