We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3cd91ac commit 0fb9cc3Copy full SHA for 0fb9cc3
src/Query/Match.php
@@ -83,15 +83,15 @@ public function toArray(): array
83
$array['match'][$this->field]['operator'] = $this->operator;
84
}
85
86
- if ($this->fuzziness && $this->fuzziness->__toString()) {
+ if ($this->fuzziness !== NULL) {
87
$array['match'][$this->field]['fuzziness'] = $this->fuzziness->__toString();
88
89
90
- if ($this->analyzer) {
+ if ($this->analyzer !== NULL) {
91
$array['match'][$this->field]['analyzer'] = $this->analyzer;
92
93
94
- if ($this->minimumShouldMatch) {
+ if ($this->minimumShouldMatch !== NULL) {
95
$array['match'][$this->field]['minimum_should_match'] = $this->minimumShouldMatch;
96
97
0 commit comments