Permalink
Browse files

default operator is AND now

  • Loading branch information...
1 parent 06524ec commit fce55a36d47a9783e631a78925f2ad1b28dbe555 @cweiske committed May 1, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 src/phorkie/Search/Elasticsearch.php
@@ -34,15 +34,17 @@ public function search($term, $page = 0, $perPage = 10)
'should' => array(
(object)array(
'query_string' => (object)array(
- 'query' => $term
+ 'query' => $term,
+ 'default_operator' => 'AND'
),
),
(object)array(
'has_child' => (object)array(
'type' => 'file',
'query' => (object)array(
'query_string' => (object)array(
- 'query' => $term
+ 'query' => $term,
+ 'default_operator' => 'AND'
)
)
)

0 comments on commit fce55a3

Please sign in to comment.