Function LangTokeniser_EN->finish_search_token
Definitions
sources/lang_tokeniser_EN.php
- Finish off parsing of a search token.
- Visibility: protected
- Is abstract?: No
- Is static?: No
- Is final?: No
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| &$fuzzy_and | array | Yes | No | required parameter | N/A | N/A | Current fuzzy and tokens |
| &$and | array | Yes | No | required parameter | N/A | N/A | Current and tokens |
| &$not | array | Yes | No | required parameter | N/A | N/A | Current not tokens |
| &$in_quotes | boolean | Yes | No | required parameter | N/A | N/A | Whether we are currently parsing a quoted portion of the query |
| &$operator | ?string | Yes | No | required parameter | N/A | N/A | The special boolean operator for this token (null: none) |
| &$current_search_token | string | Yes | No | required parameter | N/A | N/A | The current token |
| &$is_singular_ngram | boolean | Yes | No | required parameter | N/A | N/A | If it is a singular ngram |
| &$num_tokens_found | integer | Yes | No | required parameter | N/A | N/A | The number of tokens found so far |
| $max_tokens | integer | No | No | required parameter | N/A | N/A | The maximum number of tokens to parse |
Preview
Code (PHP)
/**
* Finish off parsing of a search token.
*
* @param array $fuzzy_and Current fuzzy and tokens
* @param array $and Current and tokens
* @param array $not Current not tokens
* @param boolean $in_quotes Whether we are currently parsing a quoted portion of the query
* @param ?string $operator The special boolean operator for this token (null: none)
* @param string $current_search_token The current token
* @param boolean $is_singular_ngram If it is a singular ngram
* @param integer $num_tokens_found The number of tokens found so far
* @param integer $max_tokens The maximum number of tokens to parse
*/
protected function finish_search_token(array &$fuzzy_and, array &$and, array &$not, bool &$in_quotes, ?string &$operator, string &$current_search_token, bool &$is_singular_ngram, int &$num_tokens_found, int $max_tokens)
* Finish off parsing of a search token.
*
* @param array $fuzzy_and Current fuzzy and tokens
* @param array $and Current and tokens
* @param array $not Current not tokens
* @param boolean $in_quotes Whether we are currently parsing a quoted portion of the query
* @param ?string $operator The special boolean operator for this token (null: none)
* @param string $current_search_token The current token
* @param boolean $is_singular_ngram If it is a singular ngram
* @param integer $num_tokens_found The number of tokens found so far
* @param integer $max_tokens The maximum number of tokens to parse
*/
protected function finish_search_token(array &$fuzzy_and, array &$and, array &$not, bool &$in_quotes, ?string &$operator, string &$current_search_token, bool &$is_singular_ngram, int &$num_tokens_found, int $max_tokens)

