git.cweiske.de
/
phorkie.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
06524ec
)
default operator is AND now
author
Christian Weiske
<cweiske@cweiske.de>
Tue, 1 May 2012 19:46:07 +0000
(21:46 +0200)
committer
Christian Weiske
<cweiske@cweiske.de>
Tue, 1 May 2012 19:46:07 +0000
(21:46 +0200)
src/phorkie/Search/Elasticsearch.php
patch
|
blob
|
history
diff --git
a/src/phorkie/Search/Elasticsearch.php
b/src/phorkie/Search/Elasticsearch.php
index 3c3ea8351f2397f373f6bd5951a9272b19f1b2d7..0ed766b6b68bf67cc24a9ec0a1d4ce2cde174af4 100644
(file)
--- 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'
)
)
)