Special characters in field names

Is there any restriction in using some characters in field names ?

Are these names valid ?

  • "field.name"
    -"#fieldname"
  • "@field.name"
  • "-field.name"

Thanks !

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

On Thu, 2013-02-07 at 13:49 -0800, Gildas Houmard wrote:

Is there any restriction in using some characters in field names ?

Are these names valid ?

  • "field.name"
    -"#fieldname"
  • "@field.name"
  • "-field.name"

I would avoid using embedded '.' as that is used to step into objects,
eg { foo: { bar: 1}} could access bar using 'foo.bar'

Also, avoid starting a field name with _

other than that, i think the other characters are legal

clint

Thanks !

--
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.
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.
For more options, visit https://groups.google.com/groups/opt_out.

I add that I would avoid + and - as you can use it in query string query as a must or must not clause.

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

Le 8 févr. 2013 à 11:10, Clinton Gormley clint@traveljury.com a écrit :

On Thu, 2013-02-07 at 13:49 -0800, Gildas Houmard wrote:

Is there any restriction in using some characters in field names ?

Are these names valid ?

  • "field.name"
    -"#fieldname"
  • "@field.name"
  • "-field.name"

I would avoid using embedded '.' as that is used to step into objects,
eg { foo: { bar: 1}} could access bar using 'foo.bar'

Also, avoid starting a field name with _

other than that, i think the other characters are legal

clint

Thanks !

--
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.
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.
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.
For more options, visit https://groups.google.com/groups/opt_out.

Make a lot of sense :smiley:
Thanks Clint and David !

On Friday, February 8, 2013 5:39:09 AM UTC-5, David Pilato wrote:

I add that I would avoid + and - as you can use it in query string query
as a must or must not clause.

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

Le 8 févr. 2013 à 11:10, Clinton Gormley <cl...@traveljury.com<javascript:>>
a écrit :

On Thu, 2013-02-07 at 13:49 -0800, Gildas Houmard wrote:

Is there any restriction in using some characters in field names ?

Are these names valid ?

  • "field.name"
    -"#fieldname"
  • "@field.name"
  • "-field.name"

I would avoid using embedded '.' as that is used to step into objects,
eg { foo: { bar: 1}} could access bar using 'foo.bar'

Also, avoid starting a field name with _

other than that, i think the other characters are legal

clint

Thanks !

--
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 elasticsearc...@googlegroups.com <javascript:>.
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 elasticsearc...@googlegroups.com <javascript:>.
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.
For more options, visit https://groups.google.com/groups/opt_out.