On Sun, Nov 6, 2011 at 2:58 PM, Nick Hoffman firstname.lastname@example.org wrote:
Hey guys. After reading this thread where kimchy said to avoid spaces in
field names, I'm wondering what other characters should not be included in
Also discussed in this thread:
As mentioned there, Solr has dealt with this a bit:
Since Lucene puts no restrictions on field name characters when you
create the index, you'll only run into the problem when using certain
features, such as the query parser. For starters, you'll probably want
to avoid the special characters used in the query parser syntax
a list at the end of that page, and note they can be escaped, but
better not to need a bunch of backslashes, right?
Since ElasticSearch uses JSON for mapping and searching you won't run
into some of the Solr issues, but since it uses dot notation for typed
navigation and multi_field access, you may want to avoid the dot as
In general, stick to alphanumeric and the underscore if possible.