preface

  • This article works on Elasticsearch 7.12

The query_string character is reserved

  • The official document: https://www.elastic.co/guide/…
+ - = && | | > <! () {} [] ^ "~ *? : \ /

The regex preserves the character

  • The official document: https://www.elastic.co/guide/…
.? + * | {} [] () "\ # @ & < > ~

The query_string and regex reserve the union of characters

+ - = & | > <! () {} [] ^ "~ *? : \ /. # @
+ - = & | > <! () {} [] ^ ~ *?" : \ /. # @

This article from the
qbit snap