Thanks much! It was the schema version attribute -- the recycled schema.xml I used did not contain that very useful comment. Everything works great now!
On Fri, Sep 14, 2012 at 1:56 PM, Chris Hostetter <hossman_luc...@fucit.org>wrote: > > : Greetings. I am using Solr 3.4.0 with tomcat 7.0.22. I've been using > : these versions successfully for a while, but on my latest project, I > cannot > : sort ANY field without getting this exception: > : > : SEVERE: org.apache.solr.common.SolrException: can not sort on multivalued > > ... > > : The thing is, I have only one multivalued field in my schema, at least, I > : thought so. I even tried sorting on id, which is the unique key, and got > : the same error. Here are the fields in my schema: > > a) multiValued can be set on fieldType and is then inherited by the fields > > b) Check the "version" property on your <schema/> tag. If the value is > "1.0" then all fields are assumed to be multiValued. > > Here's the comment from the example schema included with Solr 3.4... > > <schema name="example" version="1.4"> > <!-- attribute "name" is the name of this schema and is only used for > display purposes. > Applications should change this to reflect the nature of the search > collection. > version="1.4" is Solr's version number for the schema syntax and > semantics. It should > not normally be changed by applications. > 1.0: multiValued attribute did not exist, all fields are > multiValued by nature > 1.1: multiValued attribute introduced, false by default > 1.2: omitTermFreqAndPositions attribute introduced, true by default > except for text fields. > 1.3: removed optional field compress feature > 1.4: default auto-phrase (QueryParser feature) to off > --> > > > -Hoss > -- ** *Travis Low, Director of Development* ** <t...@4centurion.com>* * *Centurion Research Solutions, LLC* *14048 ParkEast Circle *•* Suite 100 *•* Chantilly, VA 20151* *703-956-6276 *•* 703-378-4474 (fax)* *http://www.centurionresearch.com* <http://www.centurionresearch.com> **The information contained in this email message is confidential and protected from disclosure. If you are not the intended recipient, any use or dissemination of this communication, including attachments, is strictly prohibited. If you received this email message in error, please delete it and immediately notify the sender. This email message and any attachments have been scanned and are believed to be free of malicious software and defects that might affect any computer system in which they are received and opened. No responsibility is accepted by Centurion Research Solutions, LLC for any loss or damage arising from the content of this email.