I know there are edge cases where "odd" field naming causes
problems, field names not well-defined/enforced with Solr. Rather than
banging my head against the wall and finding these cases
at inopportune moments, I'd confine myself to lower-case
Other stuff _may_ work, like capital letters or '-'. But '-' is part
of the solr query syntax and has the chance to getting confused
by the query parser.
Really, why add to your headaches by insisting on using some
In trunk, see:
* SOLR-2335: New 'field("...")' function syntax for refering to complex
field names (containing whitespace or special characters) in functions.
The schema in trunk also specifies:
<!-- field names should consist of alphanumeric or underscore
characters only and
not start with a digit. This is not currently strictly enforced,
but other field names will not have first class support from all
and back compatibility is not guaranteed.