Page MenuHomeMTRNord's Forge
Diviner Tech Docs PhutilSearchQueryCompiler

final class PhutilSearchQueryCompiler
Phorge Technical Documentation (Search)

This class is not documented.

Methods

public function setOperators($operators)

This method is not documented.
Parameters
$operators
Return
wild

public function getOperators()

This method is not documented.
Return
wild

public function setStemmer($stemmer)

This method is not documented.
Parameters
\PhutilSearchStemmer$stemmer
Return
wild

public function getStemmer()

This method is not documented.
Return
PhutilSearchStemmer

public function setEnableFunctions($enable_functions)

This method is not documented.
Parameters
bool$enable_functions$enable_functions
Return
wild

public function getEnableFunctions()

This method is not documented.
Return
bool

private function getMaxQueryTokens()

Get maximum number of tables in a single JOIN. MariaDB and MySQL set this to 61 tables per https://dev.mysql.com/doc/refman/8.4/en/join.html

Return
int

public function compileQuery($tokens)

This method is not documented.
Parameters
array<PhutilSearchQueryToken>$tokens$tokens
Return
string|null

public function compileLiteralQuery($tokens)

This method is not documented.
Parameters
array<PhutilSearchQueryToken>$tokens$tokens
Return
string|null

public function compileStemmedQuery($tokens)

This method is not documented.
Parameters
array<PhutilSearchQueryToken>$tokens$tokens
Return
string|null

private function compileRenderedTokens($list)

This method is not documented.
Parameters
array$list
Return
string|null

public function newTokens($query)

This method is not documented.
Parameters
$query
Return
PhutilSearchQueryToken[]

private function tokenizeQuery($query)

This method is not documented.
Parameters
string$querySearch string or part of the search string
Return
array<string[]>An array consisting of array elements like {"operator":"and","quoted":false,"value":"get","raw":"get", "function":null}

private function renderToken($token, $stemmer)

This method is not documented.
Parameters
\PhutilSearchQueryToken$token
?\PhutilSearchStemmer$stemmer
Return
wild

private function getOperatorPrefix($operator)

This method is not documented.
Parameters
$operator
Return
wild

private function quoteToken($value)

This method is not documented.
Parameters
$value
Return
wild

private function getDisplayToken($token)

This method is not documented.
Parameters
array$token
Return
wild