Lines Matching defs:parsedQuery
13 protected $parsedQuery;
32 $this->parsedQuery = ft_queryParser($Indexer, $QUERY);
33 $this->searchState = new SearchState($this->parsedQuery);
150 * @param array $parsedQuery
154 protected function isNamespaceAssistanceAvailable(array $parsedQuery)
156 if (preg_match('/[\(\)\|]/', $parsedQuery['query']) === 1) {
166 * @param array $parsedQuery
170 protected function isFragmentAssistanceAvailable(array $parsedQuery)
172 if (preg_match('/[\(\)\|]/', $parsedQuery['query']) === 1) {
176 if (!empty($parsedQuery['phrases'])) {
210 if (!$this->isFragmentAssistanceAvailable($this->parsedQuery)) {
218 'and' => array_map(static fn($term) => trim($term, '*'), $this->parsedQuery['and']),
219 'not' => array_map(static fn($term) => trim($term, '*'), $this->parsedQuery['not']),
223 'and' => array_map(static fn($term) => trim($term, '*') . '*', $this->parsedQuery['and']),
224 'not' => array_map(static fn($term) => trim($term, '*') . '*', $this->parsedQuery['not']),
228 'and' => array_map(static fn($term) => '*' . trim($term, '*'), $this->parsedQuery['and']),
229 'not' => array_map(static fn($term) => '*' . trim($term, '*'), $this->parsedQuery['not']),
233 'and' => array_map(static fn($term) => '*' . trim($term, '*') . '*', $this->parsedQuery['and']),
234 'not' => array_map(static fn($term) => '*' . trim($term, '*') . '*', $this->parsedQuery['not']),
241 if ($this->parsedQuery['and'] === $option['and']) {
291 if (!$this->isNamespaceAssistanceAvailable($this->parsedQuery)) {
297 $baseNS = empty($this->parsedQuery['ns']) ? '' : $this->parsedQuery['ns'][0];
457 $queryPagename = $this->createPagenameFromQuery($this->parsedQuery);
474 * @param array $parsedQuery
478 public function createPagenameFromQuery($parsedQuery)
480 $cleanedQuery = cleanID($parsedQuery['query']); // already strtolowered
481 if ($cleanedQuery === PhpString::strtolower($parsedQuery['query'])) {
485 if (!empty($parsedQuery['ns'])) {
486 $pagename .= ':' . cleanID($parsedQuery['ns'][0]);
488 $pagename .= ':' . cleanID(implode(' ', $parsedQuery['highlight']));
615 if (!$this->isNamespaceAssistanceAvailable($this->parsedQuery)) {
618 if (!empty($this->parsedQuery['ns']) && $this->parsedQuery['ns'][0] === $ns) {