One possibility is to use search templates

http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-template.html

The template names could be used as request ids.

But, if I understand your scenario, the real question is about how to
identify clients (e.g. by the node and socket connection they use, or more
precise, the netty channel ID), and compose a client ID with the request
IDs the client submits throughout the request life cycle. Currently, there
is no internal mechanism how Elasticsearch could associate clients with
their requests ("all search requests are equal").

Jörg


On Wed, Nov 19, 2014 at 11:58 AM, <[email protected]>
wrote:

> Dear community,
>
>
> I am looking for a feature which allows to attach requestId to the
> commands that my app is passing to the elasticsearch. It is because of our
> client requirements regarding ability to track user requests through all
> system components. After quick look into java api I do not see any
> possibility to put additional field with requestId to the query builder.
> Can you confirm that? What do you suggest to do then? Would it be easier to
> write elasticsearch plugin adding this feature or should we just do some
> dirty hacks like modifying query to contain request id but in the way that
> it will not affect returned hits.
>
> Best regards,
> Krzysztof
>
> --
> You received this message because you are subscribed to the Google Groups
> "elasticsearch" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/elasticsearch/7d73dabc-a274-4488-bf03-709d41c37ccd%40googlegroups.com
> <https://groups.google.com/d/msgid/elasticsearch/7d73dabc-a274-4488-bf03-709d41c37ccd%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/CAKdsXoHr7uffbcc2YHXCGKn-xpai_%3DPKuVxGx%3D9iVW3CmJz7Jw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to