Dear Elasticsearch team,
I'm using Elasticsearch 1.7.
Following this link,
The two following queries must give the same result, but it's not the case.
The first one gives expected result, but we created the second one to let search more convenient for user by letting him to write search by filters in one field ( which is faster then filling each field apart).
But the second one doesn't use this filter at all.
The first one:
{
"query" : {
"bool" : {
"must" : [ {
"query_string" : {
"default_field" : "main_search_field_*"
}
}, {
"bool" : {
"must" : {
"query_string" : {
"query" : "PCT",
"fields" : [ "TLE_*" ]
}
}
}
} ]
}
}
}
The second one:
{
"bool" : {
must" : [ {
"query_string" : {
"query" : "\"TLE_\\*:\"PCT\"\"",
"default_field" : "main_search_field_*"
}
} ]
}
}
Can some one help please?
Thank you in advance.