CirrusSearch
Elasticsearch-powered search for MediaWiki
|
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. | |
helpers for building queries
|
static |
Builds a match query against $field for $name.
$name is munged to make category matching better more intuitive for users.
string | $field | field containing the title |
string | $name | title query text to match against spaces. Defaults to false. |
|
static |
Builds a match query against $field for $title.
$title is munged to make title matching better more intuitive for users.
string | $field | field containing the title |
string | $title | title query text to match against |
bool | $underscores | If the field contains underscores instead of spaces. Defaults to false. |