Function LangTokeniser_EN->query_to_search_tokens
Definitions
sources/lang_tokeniser_EN.php
- Turn a search query into a set of tokens to search against.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: array
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $query | string | No | No | required parameter | N/A | N/A | Search query |
| $support_boolean | boolean | No | No | True | N/A | N/A | Whether to support boolean syntax |
| $max_tokens | integer | No | No | 30 | N/A | N/A | The maximum number of tokens to parse |
Returns
- A complex structure of search tokens
- Type: array
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Turn a search query into a set of tokens to search against.
*
* @param string $query Search query
* @param boolean $support_boolean Whether to support boolean syntax
* @param integer $max_tokens The maximum number of tokens to parse
* @return array A complex structure of search tokens
*/
public function query_to_search_tokens(string $query, bool $support_boolean = true, int $max_tokens = 30) : array
* Turn a search query into a set of tokens to search against.
*
* @param string $query Search query
* @param boolean $support_boolean Whether to support boolean syntax
* @param integer $max_tokens The maximum number of tokens to parse
* @return array A complex structure of search tokens
*/
public function query_to_search_tokens(string $query, bool $support_boolean = true, int $max_tokens = 30) : array

