Query containing special character is not working

This works!

{
                  "match_phrase": {
                    "fields.customer": {
                      "query": “\"MFG OPS AC DEV\""
                    }
                  }
                },   

This doe's **not** work, what am I missing? ...

               {
                  "match_phrase": {
                    "fields.customer": {
                      "query": “\"MFG OPS AC DEV (USA ARP7.0)\""
                    }
                  }
                },




Anyone? :wink:

Hey,

please take some more time to come up with a small but fully reproducible example. This includes

  • index creation including mapping
  • sample documents
  • a full query

That said, my first take in such a setup is always to test out the analyze API to understand what is indexed in Elasticsearch and how the query looks like. You could also go ahead with the Explain API and the explain search option

hope this helps as a start!

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.