Return-Path: X-Original-To: apmail-lucene-solr-user-archive@minotaur.apache.org Delivered-To: apmail-lucene-solr-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E6A6E17C72 for ; Wed, 29 Apr 2015 22:51:43 +0000 (UTC) Received: (qmail 37488 invoked by uid 500); 29 Apr 2015 22:51:40 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 37422 invoked by uid 500); 29 Apr 2015 22:51:40 -0000 Mailing-List: contact solr-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-user@lucene.apache.org Delivered-To: mailing list solr-user@lucene.apache.org Received: (qmail 37399 invoked by uid 99); 29 Apr 2015 22:51:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Apr 2015 22:51:39 +0000 X-ASF-Spam-Status: No, hits=2.5 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: message received from 54.164.171.186 which is an MX secondary for solr-user@lucene.apache.org) Received: from [54.164.171.186] (HELO mx1-us-east.apache.org) (54.164.171.186) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Apr 2015 22:51:33 +0000 Received: from mail-wi0-f174.google.com (mail-wi0-f174.google.com [209.85.212.174]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id A88D043DE9 for ; Wed, 29 Apr 2015 22:51:12 +0000 (UTC) Received: by wief7 with SMTP id f7so363587wie.0 for ; Wed, 29 Apr 2015 15:50:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=DMK4JhwqHQseFRmT4U3Hv03ERwcStfd5oTyRDRyzEOE=; b=C4sfX7hAmJ3YTv1exNtkwOmiL5bYt9FL10XEomT/uiLMj6zd9BGvSdF7KXUomzxG+v WKddUb0oZnMec61fNbrhjjRT9ZDmJ75C+mZxo9e7ZClzHl225j7MX4AxTsnA6SJIjPhi 0b+uvJSP9WTVF8dJRUhzyoNy6uQ5Wv5Q8kjtbu0j0n9QbfF2Ok6mI7SUX6qZBQmMXa9x BWcjMSgCi98ijPsAtcizbeu9EZpbT4eumOZ6XnFOL8YgsghY7wdCrvbk0wj49M0t4qLI HZrQ0lQc/qbKSz116vHuWhhAi/3TbqOeIyKulw8U/yCAwt3rEv0JSlwGbo2gvU1YrBxE 9v3A== MIME-Version: 1.0 X-Received: by 10.180.97.7 with SMTP id dw7mr13123153wib.74.1430347826834; Wed, 29 Apr 2015 15:50:26 -0700 (PDT) Received: by 10.27.103.8 with HTTP; Wed, 29 Apr 2015 15:50:26 -0700 (PDT) Date: Wed, 29 Apr 2015 18:50:26 -0400 Message-ID: Subject: Schema API: add-field-type From: Steven White To: solr-user@lucene.apache.org Content-Type: multipart/alternative; boundary=f46d044304401fb17e0514e4ce93 X-Virus-Checked: Checked by ClamAV on apache.org --f46d044304401fb17e0514e4ce93 Content-Type: text/plain; charset=UTF-8 Hi Everyone, When I pass the following: http://localhost:8983/solr/db/schema/fieldtypes?wt=xml I see this (as one example): date solr.TrieDateField 0 0 last_modified *_dts *_dt See how there is "fields" and "dynamicfields"? However, when I look in schema.xml, I see this: See how there is nothing about "fields" and "dynamicfields". Now, when I look further into the schema.xml, I see they are coming from: So it all makes sense. Does this means the response of "fieldtypes" includes "fields" and "dynamicfields" as syntactic-sugar to let me know of the relationship this field-type has or is there more to it? The reason why I care about this question is because I'm using Solr's Schema API (see: https://cwiki.apache.org/confluence/display/solr/Schema+API) to make changes to my schema. Per this link: https://cwiki.apache.org/confluence/display/solr/Schema+API#SchemaAPI-AddaNewFieldType it shows how to add a field-type via "add-field-type" but there is no mention of "fields" or "dynamicfields" in this API. My assumption is "fields" and "dynamicfields" need not be part of this API, instead it is done via "add-field" and "add-dynamic-field", thus what I see in the XML of "fieldtypes" response is just syntactic-sugar. Did I get all this right? Thanks Steve --f46d044304401fb17e0514e4ce93--