|
@@ -314,7 +314,7 @@ discard block |
|
|
block discarded – undo |
|
314
|
314
|
* Scopes the given query using the given operator token. |
|
315
|
315
|
* |
|
316
|
316
|
* @param \Cake\ORM\Query $query The query to scope |
|
317
|
|
- * @param \Search\Token $token Token describing an operator. e.g `-op_name:op_value` |
|
|
317
|
+ * @param TokenInterface $token Token describing an operator. e.g `-op_name:op_value` |
|
318
|
318
|
* @return \Cake\ORM\Query Scoped query |
|
319
|
319
|
*/ |
|
320
|
320
|
protected function _scopeOperator(Query $query, TokenInterface $token) |
|
@@ -326,7 +326,7 @@ discard block |
|
|
block discarded – undo |
|
326
|
326
|
* Scopes the given query using the given words token. |
|
327
|
327
|
* |
|
328
|
328
|
* @param \Cake\ORM\Query $query The query to scope |
|
329
|
|
- * @param \Search\TokenInterface $token Token describing a words sequence. e.g `this is a phrase` |
|
|
329
|
+ * @param TokenInterface $token Token describing a words sequence. e.g `this is a phrase` |
|
330
|
330
|
* @return \Cake\ORM\Query Scoped query |
|
331
|
331
|
*/ |
|
332
|
332
|
protected function _scopeWords(Query $query, TokenInterface $token) |
|
@@ -359,7 +359,7 @@ discard block |
|
|
block discarded – undo |
|
359
|
359
|
* Similar to "_scopeWords" but using MySQL's fulltext indexes. |
|
360
|
360
|
* |
|
361
|
361
|
* @param \Cake\ORM\Query $query The query to scope |
|
362
|
|
- * @param \Search\TokenInterface $token Token describing a words sequence. e.g `this is a phrase` |
|
|
362
|
+ * @param TokenInterface $token Token describing a words sequence. e.g `this is a phrase` |
|
363
|
363
|
* @return \Cake\ORM\Query Scoped query |
|
364
|
364
|
*/ |
|
365
|
365
|
protected function _scopeWordsInFulltext(Query $query, TokenInterface $token) |
|
@@ -389,7 +389,7 @@ discard block |
|
|
block discarded – undo |
|
389
|
389
|
/** |
|
390
|
390
|
* Whether FullText index is available or not and should be used. |
|
391
|
391
|
* |
|
392
|
|
- * @return bool True if enabled and should be used, false otherwise |
|
|
392
|
+ * @return null|boolean True if enabled and should be used, false otherwise |
|
393
|
393
|
*/ |
|
394
|
394
|
protected function _isFullTextEnabled() |
|
395
|
395
|
{ |