Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Lucene: General

Multivalued attribute default

 

 

Lucene general RSS feed   Index | Next | Previous | View Threaded


nabble at mlecza

Aug 6, 2012, 9:00 AM

Post #1 of 3 (256 views)
Permalink
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.


nabble at mlecza

Aug 6, 2012, 9:33 AM

Post #2 of 3 (248 views)
Permalink
Re: Multivalued attribute default [In reply to]

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.


nabble at mlecza

Aug 6, 2012, 10:37 AM

Post #3 of 3 (244 views)
Permalink
Re: Multivalued attribute default [In reply to]

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.

Lucene general RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.