diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2015-10-18 09:31:31 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2015-10-18 09:31:31 +0200 |
commit | 80f7dc77d430774192b929d780f96260066df2ee (patch) | |
tree | 102eaae7fc9ec567f2af76e96da3de2d1e83afcf /vendor/ruflin/elastica/lib/Elastica/Query/SimpleQueryString.php | |
parent | cccd7bb4d819334c07e0dadaf16cbfdef31880e1 (diff) |
Update to MediaWiki 1.25.3
Diffstat (limited to 'vendor/ruflin/elastica/lib/Elastica/Query/SimpleQueryString.php')
-rw-r--r-- | vendor/ruflin/elastica/lib/Elastica/Query/SimpleQueryString.php | 65 |
1 files changed, 0 insertions, 65 deletions
diff --git a/vendor/ruflin/elastica/lib/Elastica/Query/SimpleQueryString.php b/vendor/ruflin/elastica/lib/Elastica/Query/SimpleQueryString.php deleted file mode 100644 index a6c4ba9d..00000000 --- a/vendor/ruflin/elastica/lib/Elastica/Query/SimpleQueryString.php +++ /dev/null @@ -1,65 +0,0 @@ -<?php - -namespace Elastica\Query; - -/** - * Class SimpleQueryString - * @package Elastica\Query - * @link http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-simple-query-string-query.html - */ -class SimpleQueryString extends AbstractQuery -{ - const OPERATOR_AND = "and"; - const OPERATOR_OR = "or"; - - /** - * @param string $query - * @param array $fields - */ - public function __construct($query, array $fields = array()) - { - $this->setQuery($query); - if (sizeof($fields)) { - $this->setFields($fields); - } - } - - /** - * Set the querystring for this query - * @param string $query see ES documentation for querystring syntax - * @return \Elastica\Query\SimpleQueryString - */ - public function setQuery($query) - { - return $this->setParam("query", $query); - } - - /** - * @param string[] $fields the fields on which to perform this query. Defaults to index.query.default_field. - * @return \Elastica\Query\SimpleQueryString - */ - public function setFields(array $fields) - { - return $this->setParam("fields", $fields); - } - - /** - * Set the default operator to use if no explicit operator is defined in the query string - * @param string $operator see OPERATOR_* constants for options - * @return \Elastica\Query\SimpleQueryString - */ - public function setDefaultOperator($operator) - { - return $this->setParam("default_operator", $operator); - } - - /** - * Set the analyzer used to analyze each term of the query - * @param string $analyzer - * @return \Elastica\Query\SimpleQueryString - */ - public function setAnalyzer($analyzer) - { - return $this->setParam("analyzer", $analyzer); - } -}
\ No newline at end of file |