I'm inserting my data as follows:
PUT my_index2/doc/1
{
"key": "party",
"str_val": "THE TWITTER INC"
}
PUT my_index2/doc/2
{
"key": "party",
"str_val": "twitter inc"
}
This query:
POST my_index2/_search
{
"query": {
"query_string": {
"default_field": "str_val",
"query": "*twitter*"
}
}
}
correctly returns both results. If I slightly alter my query to:
POST my_index2/_search
{
"query": {
"query_string": {
"default_field": "str_val",
"query": "*the twitter*"
}
}
}
I'm expecting only one result since *the twitter* should only match "THE TWITTER INC" and not "twitter inc". But two results are returned.
Why is my search returning too many matches?