diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-05-01 15:31:33 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-05-01 15:31:33 -0400 |
commit | 150f94f051128f367bc89f6b7e5f57eb2a69fc62 (patch) | |
tree | 181f454813b310ee97385058c6c6f2e3f34d5fd8 /vendor/ruflin/elastica/lib/Elastica/Query/Prefix.php | |
parent | 7e85254903c7c0cb49e381f16b18441ea7b058cc (diff) | |
parent | 80f7dc77d430774192b929d780f96260066df2ee (diff) |
Merge commit '80f7dc'
# Conflicts:
# extensions/ArchInterWiki.sql
Diffstat (limited to 'vendor/ruflin/elastica/lib/Elastica/Query/Prefix.php')
-rw-r--r-- | vendor/ruflin/elastica/lib/Elastica/Query/Prefix.php | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/vendor/ruflin/elastica/lib/Elastica/Query/Prefix.php b/vendor/ruflin/elastica/lib/Elastica/Query/Prefix.php deleted file mode 100644 index 4306fd9c..00000000 --- a/vendor/ruflin/elastica/lib/Elastica/Query/Prefix.php +++ /dev/null @@ -1,48 +0,0 @@ -<?php - -namespace Elastica\Query; - -/** - * Prefix query - * - * @category Xodoa - * @package Elastica - * @link http://www.elasticsearch.org/guide/reference/query-dsl/prefix-query.html - */ -class Prefix extends AbstractQuery -{ - /** - * Constructs the Prefix query object - * - * @param array $prefix OPTIONAL Calls setRawPrefix with the given $prefix array - */ - public function __construct(array $prefix = array()) - { - $this->setRawPrefix($prefix); - } - - /** - * setRawPrefix can be used instead of setPrefix if some more special - * values for a prefix have to be set. - * - * @param array $prefix Prefix array - * @return \Elastica\Query\Prefix Current object - */ - public function setRawPrefix(array $prefix) - { - return $this->setParams($prefix); - } - - /** - * Adds a prefix to the prefix query - * - * @param string $key Key to query - * @param string|array $value Values(s) for the query. Boost can be set with array - * @param float $boost OPTIONAL Boost value (default = 1.0) - * @return \Elastica\Query\Prefix Current object - */ - public function setPrefix($key, $value, $boost = 1.0) - { - return $this->setRawPrefix(array($key => array('value' => $value, 'boost' => $boost))); - } -} |