Hi all,
I am having trouble using must vs. should delivering strange results...
Searching for the phrase "123 Dummy 01/10"
When using must (or should) with only this one Phrase:
[query] => Array(
[bool] => Array(
[must] => Array(
[0] => Array(
[match_phrase] => Array(
[_full_text] => 123 Dummy 01/10
)
)
)
)
)
the result is one document, which is correct: there is exactly one document in the index with this phrase.
Now...
When using should with "123 Dummy 01/10" and "123 Dummy 1/10"
[query] => Array(
[bool] => Array(
[should] => Array(
[0] => Array(
[match_phrase] => Array(
[_full_text] => 123 Dummy 1/10
)
)
[1] => Array (
[match_phrase] => Array (
[_full_text] => 123 Dummy 01/10
)
)
)
[minimum_should_match] => 1
)
)
the result is no document at all...
I have not yet found anything on why this happens or how I can get it to work
Maybe someone can help me in my struggle?