CirrusSearch
Elasticsearch-powered search for MediaWiki
Loading...
Searching...
No Matches
CirrusSearch\Query\QueryHelper Class Reference

helpers for building queries More...

Static Public Member Functions

static matchPage ( $field, $title, $underscores=false)
 Builds a match query against $field for $title.
 
static matchCategory ( $field, $name)
 Builds a match query against $field for $name.
 

Detailed Description

helpers for building queries

Member Function Documentation

◆ matchCategory()

static CirrusSearch\Query\QueryHelper::matchCategory ( $field,
$name )
static

Builds a match query against $field for $name.

$name is munged to make category matching better more intuitive for users.

Parameters
string$fieldfield containing the title
string$nametitle query text to match against spaces. Defaults to false.
Returns
\Elastica\Query\MatchQuery For matching $title to $field

◆ matchPage()

static CirrusSearch\Query\QueryHelper::matchPage ( $field,
$title,
$underscores = false )
static

Builds a match query against $field for $title.

$title is munged to make title matching better more intuitive for users.

Parameters
string$fieldfield containing the title
string$titletitle query text to match against
bool$underscoresIf the field contains underscores instead of spaces. Defaults to false.
Returns
\Elastica\Query\MatchQuery For matching $title to $field

The documentation for this class was generated from the following file: