Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I have a query

POST xxxxxx_*/_search
{
  "query": {
    "query_string": {
      "query": "timestamp:[2020-01-07T10:33:16.726591 TO *] AND type:(*virtualMachines OR type:"Instance" OR "compute#instance")"
    }
  },
  "sort": [
    {
      "timestamp": {
        "order": "desc"
      }
    }
  ]
}
  1. I wonder why there is no type:sql#instance in the query sentence but the result contains sql#instance and compute#instance state.

  2. I tried to separate it like this:

    type:(*virtualMachines OR type:"Instance" OR "compute#instance")

But still the same result. Any idea for this issue!! Thanks!

question from:https://stackoverflow.com/questions/65661718/the-issue-escape-letters-in-query-string-elastic-search

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
470 views
Welcome To Ask or Share your Answers For Others

1 Answer

Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...