Thanks for the help. You were right that it did change from text to string and I think I forgot to restart the server to get the new schema loaded. But I did create a new title_sort field of type "alphaOnlySort" and that worked.
Michael On Feb 14, 2011, at 10:10 AM, Jan Høydahl wrote: > Hi, > > Your schema says that title is type="string", so this should work. However, > has title always been "string", or have you changed it from "text" without > doing a complete re-index at some point? > > A few hints: > * When using type="string", you will not get matches for each single word in > your catch-all "text" field > Add another field of type "text" for serching, and a separate field for > sorting > * The separate sorting field (e.g. title_sort) could use type="alphaOnlySort" > or some other fieldtype with > lowercasing, to avoid case sensitive sort. > * If your index is large, consider putting a cap on number of bytes used for > title_sort, by adding maxChars="20" to the <copyField> tag > > -- > Jan Høydahl, search solution architect > Cominvent AS - www.cominvent.com > > On 14. feb. 2011, at 16.41, Michael Hayes wrote: > >> I am trying what I think is a very simple sort with Solr but my results are >> confusing. It appears that Solr is using any word in the field I want to >> sort on to do the sort. I am returning only the sorted field (just for this >> example) and asking that it be sorted desc. I am using Solr 1.4.1 >> >> Here is my query: >> >> http://localhost:8280/solr/catalogProductSearch/select/?facet=true&fl=title&sort=title%20desc&start=1&q=category_level1:%28%22Fiction*Historical%22%29&wt=xml&rows=15&version=2.2 >> >> I have attached my schema.xml and a text file with my results. >> >> I am assuming it has to do with my schema config but i am stumped as to what >> it might be. >> >> Any thoughts? >> >> >> Michael Hayes >> >> >> >> <schema.xml><Solr_Strange_Sort.txt> >