Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-3207

Add field name validation

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 4.0-ALPHA
    • 4.9, 6.0
    • None
    • None

    Description

      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)

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            lucacavanna Luca Cavanna

            Dates

              Created:
              Updated:

              Slack

                Issue deployment