the defaults for a <field/> come from the <fieldType/> specified by the 
"type" attribute.

>From that point, the default behavior of a <fieldType/> can vary by the 
individual FieldType "class" implementation (ie: most fields default to 
omitTermFreqAndPositions="true" but TextField defaults to false) or by the 
"version" attribute of the schema (multiValued defaults to "true" if 
version < 1.1, otherwise false) or by both (omitNorms defaults to true for 
most primitive types *except* TextField, but only if version > 1.4)


Bottom line: if you want to know how a field/fieldtype is going to 
behave by default, your best bet is to configure it and use the 
Schema Browser to see what is set by default.




: Date: Mon, 27 Apr 2015 10:56:12 -0400
: From: Steven White <swhite4...@gmail.com>
: Reply-To: solr-user@lucene.apache.org
: To: solr-user@lucene.apache.org
: Subject: Field attribute default value
: 
: Hi Everyone,
: 
: I'm looking at
: https://cwiki.apache.org/confluence/display/solr/Defining+Fields and
: https://wiki.apache.org/solr/SchemaXml but cannot find an answer, so maybe
: it is someplace else?
: 
: I need to know what is the default value for each field attribute (when
: that attribute is missing).  For example, what's the default for "indexed"
: if it is missing?  What about "stored", "docValues", etc.?
: 
: Thanks,
: 
: Steve
: 

-Hoss
http://www.lucidworks.com/

Reply via email to