Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 238DC18478 for ; Thu, 25 Feb 2016 02:10:22 +0000 (UTC) Received: (qmail 69451 invoked by uid 500); 25 Feb 2016 02:10:18 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 69389 invoked by uid 500); 25 Feb 2016 02:10:18 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 69370 invoked by uid 99); 25 Feb 2016 02:10:18 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Feb 2016 02:10:18 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 3100D2C1F68 for ; Thu, 25 Feb 2016 02:10:18 +0000 (UTC) Date: Thu, 25 Feb 2016 02:10:18 +0000 (UTC) From: "Jason Gerlowski (JIRA)" To: dev@lucene.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (SOLR-8110) Start enforcing field naming recomendations in next X.0 release? MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SOLR-8110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15166571#comment-15166571 ] Jason Gerlowski edited comment on SOLR-8110 at 2/25/16 2:09 AM: ---------------------------------------------------------------- Slightly updated patch. Few notes - still no tests. Wouldn't be hard to add tests for core-creation. As I mentioned above, adding a test for collection-creation might be tough due to some quirky/buggy behavior I noticed. - still haven't touched Schema API. That's my goal for tomorrow. - right now uses LuceneMatchVersion to determine whether enforcement is done. Can change that later on if that's the consensus. was (Author: gerlowskija): Slightly updated patch. Few notes - still no tests. I can test core-creation, but as I mentioned in a comment above, I'm seeing 'quirky' behavior on collection creation. - still haven't touched Schema API. That's my goal for tomorrow. - right now uses LuceneMatchVersion to determine whether enforcement is done. Can change that later on if that's the consensus. > Start enforcing field naming recomendations in next X.0 release? > ---------------------------------------------------------------- > > Key: SOLR-8110 > URL: https://issues.apache.org/jira/browse/SOLR-8110 > Project: Solr > Issue Type: Improvement > Reporter: Hoss Man > Attachments: SOLR-8110.patch, SOLR-8110.patch > > > For a very long time now, Solr has made the following "recommendation" regarding field naming conventions... > bq. 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. ... > I'm opening this issue to track discussion about if/how we should start enforcing this as a rule instead (instead of just a "recommendation") in our next/future X.0 (ie: major) release. > The goals of doing so being: > * simplify some existing code/apis that currently use hueristics to deal with lists of field and produce strange errors when the huerstic fails (example: ReturnFields.add) > * reduce confusion/pain for new users who might start out unaware of the recommended conventions and then only later encountering a situation where their field names are not supported by some feature and get frustrated because they have to change their schema, reindex, update index/query client expectations, etc... -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org