lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley (Commented) (JIRA)" <>
Subject [jira] [Commented] (SOLR-3207) Add field name validation
Date Thu, 15 Mar 2012 16:41:38 GMT


Yonik Seeley commented on SOLR-3207:

bq. same used for java identifiers (Character#isJavaIdentifierPart), plus the use of trailing
'.' and '-'

I think we should prob define it as I documented in the schema:

   <!-- 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 components
      and back compatibility is not guaranteed.

> Add field name validation
> -------------------------
>                 Key: SOLR-3207
>                 URL:
>             Project: Solr
>          Issue Type: Improvement
>    Affects Versions: 4.0
>            Reporter: Luca Cavanna
>             Fix For: 4.0
>         Attachments: SOLR-3207.patch
> Given the SOLR-2444 updated fl syntax and the SOLR-2719 regression, it would be useful
to add some kind of validation regarding the field names you can use on Solr.
> The objective would be adding consistency, allowing only field names that you can then
use within fl, sorting etc.
> The rules, taken from the actual StrParser behaviour, seem to be the following: 
> - same used for java identifiers (Character#isJavaIdentifierPart), plus the use of trailing
'.' and '-'
> - for the first character the rule is Character#isJavaIdentifierStart minus '$' (The
dash can't be used as first character (SOLR-3191) for example)

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message