Correct - the field definitions inherit the attributes of the field type, and it is the field type that has the actual default values for indexed and stored (and other attributes.)

-- Jack Krupansky

-----Original Message----- From: Yonik Seeley
Sent: Monday, July 01, 2013 3:56 PM
To: solr-user@lucene.apache.org
Subject: Re: are fields stored or unstored by default xml

On Mon, Jul 1, 2013 at 3:50 PM, Jack Krupansky <j...@basetechnology.com> wrote:
"stored" and "indexed" both default to "true".

This is legal:

   <field name="alpha" type="string" />

Actually, for fields I believe the defaults come from the fieldType.
The fieldType defaults to true for both indexed and stored if they are
not specified there.

-Yonik
http://lucidworks.com

Reply via email to