I've indexed some fields which contained spaces and unicode
characters with elasticsearch 1.4.2 ("lucene_version": "4.10.2"). I was
able to retrieve the documents with
term query without any problems.
My question would be, are there any pitfalls when using unicode characters
and spaces in elasticsearch field names? or is this discouraged?
I've indexed some fields which contained spaces and unicode
characters with elasticsearch 1.4.2 ("lucene_version": "4.10.2"). I was
able to retrieve the documents with
term query without any problems.
My question would be, are there any pitfalls when using unicode characters
and spaces in elasticsearch field names? or is this discouraged?
org.elasticsearch.index.mapper.ContentPath -> see delimiter variable, it is
'.' by default
org.elasticsearch.index.mapper.Uid -> see DELIMITER, it is set to '#'
and for '*'
org.elasticsearch.index.mapper.FieldMappersLookup and
org.elasticsearch.index.mapper.object.DynamicTemplate -> are using
org.elasticsearch.common.reges.Regex.simpleMatch on field names, a
simplified regex routine which supports abc, abc, and abc* patterns
Does anybody have an idea at least where in the elasticsearch code this is
handled?
Thanks!
On Friday, January 16, 2015 at 9:21:34 AM UTC+1, George wrote:
Hello everybody,
I've researched a little bit what characters are allowed in elasticsearch
field names.
However, I couldn't find any official documentation only some posts which
mentioned that '.', '#' and '*' are discouraged. See http://elasticsearch-users.115913.n3.nabble.com/Illegal-characters-in-
elasticsearch-field-names-td4054773.html.
I've indexed some fields which contained spaces and unicode
characters with elasticsearch 1.4.2 ("lucene_version": "4.10.2"). I was
able to retrieve the documents with
term query without any problems.
My question would be, are there any pitfalls when using unicode
characters and spaces in elasticsearch field names? or is this discouraged?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.