When running a multi-term querystring query with multiple search fields, I get different results depending on if there is a boolean operator present.
For example if I have the following document:
{
title: "Car",
description: "Boat"
}
When I run the following query I get back 0 hits.
{
"query": {
"query_string": {
"default_operator": "AND",
"fields": ["title", "description"],
"query": "Car Boat"
}
}
But if I add an "AND" in the query I get back the 1 hit as expected:
{
"query": {
"query_string": {
"default_operator": "AND",
"fields": ["title", "description"],
"query": "Car AND Boat"
}
}
I would have thought setting the default_operator
to "AND" would have resulted in the same hits.