You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Katie McCorkell <ka...@gmail.com> on 2013/07/01 20:16:36 UTC
are fields stored or unstored by default xml
In schema.xml I know you can label a field as stored="false" or
stored="true", but if you say neither, which is it by default?
Thank you
Katie
Re: are fields stored or unstored by default xml
Posted by Jack Krupansky <ja...@basetechnology.com>.
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 <ja...@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
Re: are fields stored or unstored by default xml
Posted by Yonik Seeley <yo...@lucidworks.com>.
On Mon, Jul 1, 2013 at 3:50 PM, Jack Krupansky <ja...@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
Re: are fields stored or unstored by default xml
Posted by Jack Krupansky <ja...@basetechnology.com>.
"stored" and "indexed" both default to "true".
This is legal:
<field name="alpha" type="string" />
This detail will be in Early Access Release #2 of my book on Friday.
-- Jack Krupansky
-----Original Message-----
From: Otis Gospodnetic
Sent: Monday, July 01, 2013 2:21 PM
To: solr-user@lucene.apache.org
Subject: Re: are fields stored or unstored by default xml
Haven't tried it recently, but is that even legal? Just be explicit :)
Otis
--
Solr & ElasticSearch Support -- http://sematext.com/
Performance Monitoring -- http://sematext.com/spm
On Mon, Jul 1, 2013 at 2:16 PM, Katie McCorkell
<ka...@gmail.com> wrote:
> In schema.xml I know you can label a field as stored="false" or
> stored="true", but if you say neither, which is it by default?
>
> Thank you
> Katie
Re: are fields stored or unstored by default xml
Posted by Otis Gospodnetic <ot...@gmail.com>.
Haven't tried it recently, but is that even legal? Just be explicit :)
Otis
--
Solr & ElasticSearch Support -- http://sematext.com/
Performance Monitoring -- http://sematext.com/spm
On Mon, Jul 1, 2013 at 2:16 PM, Katie McCorkell
<ka...@gmail.com> wrote:
> In schema.xml I know you can label a field as stored="false" or
> stored="true", but if you say neither, which is it by default?
>
> Thank you
> Katie