No, not in the schema but in the solrconfig. Look for your request handler such 
as the default:
  <requestHandler name="/select" class="solr.SearchHandler">

you can add a default value for the sort parameter

  <str name="sort">field desc</str>
 
 
-----Original message-----
> From:A Geek <dw...@live.com>
> Sent: Wed 03-Oct-2012 16:53
> To: solr-user@lucene.apache.org
> Subject: how to specify default sort fields in solr schema?
> 
> 
> Hi all, Is there a way to specify the default sort fields in the solr schema 
> in 3.6 or 4.0Beta? similar to the default search operator. Like, the default 
> search operator can be set to "OR" and only when you want to override you 
> pass it in the search URL as "AND". I have lots of fields related to the docs 
> I'm indexing and want the result to be sorted on certain set of fields by 
> default. Would appreciate any help in this direction. Thanks in advance. 
> Regards, DK                                     

Reply via email to