Name or tag the search query


(Johnny Park) #1

Hello. I recently upgraded from Elastic 2.X to 5.X. In 5.X, it looks like queries can no longer have arbitrary URL parameters. I used to append my search URL with a name, e.g.

_search?name=mysearch

so that I can distinguish easily among many types of searches on Chrome dev tool. (My app invokes multiple AJAX concurrently.) Prior to naming the URL, I clicked through many of the _search lines to find the one I want.

Is there a naming/tagging feature in Elastic 5, or is there a different approach to help debug multiple calls to Elastic? (I'm also open to other tools than Chrome dev tool).

Thank you.


(Alexander Reelsen) #2

Hey,

indeed, parsing got strict here. You could set the X-Opaque-Id HTTP header field, which is also returned in the response.

--Alex


(Johnny Park) #3

Thanks! I can add that header as custom response header in the dev tool.


(system) #4

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