aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2012-05-01 21:46:07 +0200
committerChristian Weiske <cweiske@cweiske.de>2012-05-01 21:46:07 +0200
commitfce55a36d47a9783e631a78925f2ad1b28dbe555 (patch)
tree740f5eaaa10d538d0a424a2dedd7c69a42415fd3 /src
parent06524ec25d81c383bc801dee70582a42b348303c (diff)
downloadphorkie-fce55a36d47a9783e631a78925f2ad1b28dbe555.tar.gz
phorkie-fce55a36d47a9783e631a78925f2ad1b28dbe555.zip
default operator is AND now
Diffstat (limited to 'src')
-rw-r--r--src/phorkie/Search/Elasticsearch.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/phorkie/Search/Elasticsearch.php b/src/phorkie/Search/Elasticsearch.php
index 3c3ea83..0ed766b 100644
--- a/src/phorkie/Search/Elasticsearch.php
+++ b/src/phorkie/Search/Elasticsearch.php
@@ -34,7 +34,8 @@ class Search_Elasticsearch
'should' => array(
(object)array(
'query_string' => (object)array(
- 'query' => $term
+ 'query' => $term,
+ 'default_operator' => 'AND'
),
),
(object)array(
@@ -42,7 +43,8 @@ class Search_Elasticsearch
'type' => 'file',
'query' => (object)array(
'query_string' => (object)array(
- 'query' => $term
+ 'query' => $term,
+ 'default_operator' => 'AND'
)
)
)