Skip to content

Commit 83db4cd

Browse files
committed
re #4 make elastica more "and" like by default
1 parent a5b0c61 commit 83db4cd

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG-0.x.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,9 @@
22
This changelog references the relevant changes done in 0.x versions.
33

44

5+
## v0.1.1
6+
* issue #4: Adjust ElasticaQueryBuilder to be more "AND" like by default.
7+
8+
59
## v0.1.0
610
* Initial version.

src/Builder/ElasticaQueryBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public function lowerCaseTerms($lowerCaseTerms = true)
116116
*/
117117
public function getFilteredQuery()
118118
{
119-
$this->boolQuery->setMinimumNumberShouldMatch('1<50%');
119+
$this->boolQuery->setMinimumNumberShouldMatch('2<80%');
120120
return $this->qb->query()->filtered($this->boolQuery, $this->boolFilter);
121121
}
122122

0 commit comments

Comments
 (0)