메소드 |
설명 |
|
addSelectsToQuery ( &$query, $selects ) |
Puts all the select clauses to the main query |
|
createSearchQuery ( Query $query, text $search ) : Query |
Makes the search query to search for text by
relevance inside the database using IF statements |
|
filterCommonWords ( array $words ) : array |
Filter out words like a, the, but, and, her, his, etc <-- even that one |
|
filterQueryWithRelevance ( &$query, $relevance_count ) |
Adds where clauses to this query based on the relevance |
|
getColumns ( ) : array |
Returns the search columns |
|
getJoins ( ) : array |
Returns the tables that has to join |
|
getSearchQueriesForColumn ( string $column, integer $relevance, array $words ) : array |
Overrides how the relevance is calculated |
|
makeJoins ( &$query ) |
Adds the join sql to the query |
|