Elasticsearch 5.6.8 から 6.2.4 にアップグレードした後、simple_query_string の動作に変更が加えられていることに気付きました。これは重大な変更に記載されているようには見えません。両方のバージョンに対して次のコマンドを実行すると、5 では "Test *" が "Test Value" と一致しますが、バージョン 6 では一致しないことがわかります。 6.X での 5.X の動作は?
PUT test_query
{
"mappings": {
"test_type": {
"properties": {
"my_field": {
"type": "text",
"analyzer": "standard"
}
}
}
}
}
POST /test_query/test_type
{
"my_field": "Test Value Here"
}
GET test_query/_search
{
"query": {
"simple_query_string": {
"fields": [
"my_field"
],
"query": "Test *",
"default_operator": "and"
}
}
}