thanks! I replaced my code with this and it works fine now:
SortSpec sortSpec = builder.getSortSpec(); if( sortSpec.getSort() == null ) { SchemaField sf = builder.req.getCore().getSchema() .getField( "somefield" ); sortSpec.setSort( new Sort( new SortField[] { sf.getSortField( true ) })); } thanks mark! On Wed, Jun 17, 2009 at 8:07 PM, Mark Miller<markrmil...@gmail.com> wrote: > >> ... grab the field type from Solr and set it rather than using AUTO, ... > > This constructor public SortField (String field, int type, boolean reverse) > >