Lines Matching defs:query
25 * Returns a list of matching documents for the given query
29 * @param string $query
37 function ft_pageSearch($query, &$highlight, $sort = null, $after = null, $before = null)
44 'query' => $query,
55 * Returns a list of matching documents for the given query
67 // parse the given query
68 $q = ft_queryParser($Indexer, $data['query']);
73 // lookup all words found in the query
82 // process the query
687 * Parses a search query and builds an array of search formulas
693 * @param string $query search query
696 function ft_queryParser($Indexer, $query)
699 * parse a search query and transform it into intermediate representation
701 * in a search query, you can use the following expressions:
719 * e.g. a query [ aa "bb cc" @dd:ee ] means "search pages which contain
721 * this query is equivalent to [ -(-aa or -"bb cc" or -ns:dd:ee) ]
738 PhpString::strtolower($query),
882 $q['query'] = $query;
968 * Recreate a search query string based on parsed parts, doesn't support negated phrases and `OR` searches
980 $query = implode(' ', $and);
982 $query .= ' -' . implode(' -', $not);
986 $query .= ' "' . implode('" "', $phrases) . '"';
990 $query .= ' @' . implode(' @', $ns);
994 $query .= ' ^' . implode(' ^', $notns);
997 return $query;