You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@lucene.apache.org by bartlex <na...@mlecza.newnetco.com> on 2012/08/06 18:00:17 UTC

Multivalued attribute default

We are currently running on Solr 1.4.1.  I just downloaded Solr 3.6.1 to see
how well it plays with our current 1.4.1 index.

One thing I noticed is that 3.6 seems to be assuming my properties are
multivalued unless otherwise specified in the schema.xml.

For example, I have the following property
<field name="PerformedDate" type="tdate" indexed="true" stored="true"/>

When I try to do a query sorted by PerformedDate date I get a message
stating I cannot sort on a multivalued property.

If I change the schema to the following it the query works properly"
<field name="PerformedDate" type="tdate" indexed="true" stored="true"
multiValued="false"/>

I thought the default for multiValued was false.  Is this not the case?

NOTE: I have not reindexed since upgrading to 3.6.  Is this my problem?

I'd rather not have to go through the schema.xml adding multiValued="false"
to 95% of my properties if I do not have to.



--
View this message in context: http://lucene.472066.n3.nabble.com/Multivalued-attribute-default-tp3999404.html
Sent from the Lucene - General mailing list archive at Nabble.com.

Re: Multivalued attribute default

Posted by bartlex <na...@mlecza.newnetco.com>.
Nevermind.  I needed to change the schema version in schema.xml from:

<schema name="test" version="1.0">

To:

<schema name="test" version="1.5">



--
View this message in context: http://lucene.472066.n3.nabble.com/Multivalued-attribute-default-tp3999404p3999426.html
Sent from the Lucene - General mailing list archive at Nabble.com.

Re: Multivalued attribute default

Posted by bartlex <na...@mlecza.newnetco.com>.
NOTE: I just tried creating the index from scratch in 3.6 and the default for
multivalued is still acting as true.

Perhaps there is something in config.xml or schema.xml that I need to
change?

Thanks in advance



--
View this message in context: http://lucene.472066.n3.nabble.com/Multivalued-attribute-default-tp3999404p3999421.html
Sent from the Lucene - General mailing list archive at Nabble.com.