Attach handlers for dynamic URIs in REST plugins

Hello,

I implement a REST plugin for ElasticSearch that provides a set of URI
to manage and search indices. I attached the supported URIs using the
RestController and this works fine.

I have however the issue of dynamic URIs depending on the structure of
types but I can't find a way to configure them. For example, for a type
that has a field named field1, I would like to support URI like
"(...)/mytype/id/field1" and "(...)/mytype/id/field1/fieldA" with a
pattern like "(...)/{type}/{id}/*". As a matter of fact, I can't know
the depth of URI elements after "(...)/{type}/{id}/" by advance since it
depends on the structure of type.

In fact I would need to attach handlers for URIs that starts with a
specific pattern. Is it something supported?

Thanks for your help.
Thierry

--
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 elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/52ED11A1.7080208%40gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.