elasticsearch - forward slash issue in ELK query strings -


i have elk query in query_string looks like:

{"query_string":{"query":"context.productname:abc/def"}} 

this fails.

but, following works:

{"query_string":{"query":"context.productname:abc\\/def"}} 

lets have value in variable like

let productname = 'abc/def'

what right way escape variable works elk query?


Comments

Popular posts from this blog

ios - MKAnnotationView layer is not of expected type: MKLayer -

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -