Naming an index or a type with URIs

Is it technically possible to name an index or a type with a URI string (containing dots, slashes, colons, ...)?
I have tried to do some curl stuff with an URL like http://localhost:9200/<urlencoded_index_uri>/<urlencoded_type_uri>/... but it didn't seem to work very well.
Are there technical issues with this kind of naming? Or is it possible to name indices and types with URIs? In that case, what would a sample Elasticsearch URL look like?

I appreciate all advice from the community. Thx!

--
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/5114ee1d-e020-42f1-b081-2c7c7ca667f4%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Index names must be lowercase and must not contain characters that are
problematic in file names, because they are used as directory name.

Type names are not used in the file system but to conform with index names,
they are also restricted.

I also use URIs in Elasticsearch. You can use them as field names and field
values. In field values, they can be used for linking data.

But i recommend to build URIs dynamically in the middleware where
addressing is implemented, so you can move or reassign URIs more easily,
just by changing a global config without the need to reindex or reset alias.

Jörg

--
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/CAKdsXoHmbLAicWrRfTijGBiQ8Q%3DwRzXdD34j1vKaNg1YAm73gQ%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

I think I would base64 encode the URL and lowercase it.

I did not try it though.

My 2 cents.

--
David :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 18 janv. 2014 à 11:07, Olivier Rossel olivier.rossel@gmail.com a écrit :

Is it technically possible to name an index or a type with a URI string (containing dots, slashes, colons, ...)?
I have tried to do some curl stuff with an URL like http://localhost:9200/<urlencoded_index_uri>/<urlencoded_type_uri>/... but it didn't seem to work very well.
Are there technical issues with this kind of naming? Or is it possible to name indices and types with URIs? In that case, what would a sample Elasticsearch URL look like?

I appreciate all advice from the community. Thx!

--
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/5114ee1d-e020-42f1-b081-2c7c7ca667f4%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
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/77EAC54A-D360-48E8-AE39-BC830D23A63E%40pilato.fr.
For more options, visit https://groups.google.com/groups/opt_out.