Hi Lance, Thanks for the reply!
I checked the settings and I don't think it has multivalue setting. Here is the current field configuration: * <field name="id" type="string" indexed="true" stored="true" required="true" /> <field name="first" type="textgen" indexed="true" stored="true" termVectors="true" /> <field name="last" type="textgen" indexed="true" stored="true"/> <field name="line1" type="textgen" indexed="true" stored="true"/> <field name="state" type="textgen" indexed="true" stored="true"/> <field name="zipcode" type="textgen" indexed="true" stored="true"/> <field name="tax" type="textgen" indexed="true" stored="true"/> ** * > * > *Lance Norskog wrote: > > This can happen when there are multiple values in a field. Is 'first' > a multi-valued field? > > Sorting only works on single-valued fields. After all, if there are > multiple values, it can only sort on one field and there is no way to > decide which one. So, make sure that 'field' has multiValued='false' > in the field declaration. If this is the problem, you will have to fix > your data and re-index. > > Is 'field' an analyzed text field? Then sorting definitely will not work. > > On Fri, Jul 16, 2010 at 6:54 PM, Girish Pandit <pandit.gir...@gmail.com> > <pandit.gir...@gmail.com> wrote: > > > Hi, > > As soon as I add "sort=first+desc" parameter to the select clause, it throws > ArrayIndexOutOfBound exception. Please suggest if I am missing anything. > http://localhost:8983/solr/select?q=girish&start=0&indent=on&wt=json&sort=first+desc > > I have close to 1 million records indexed. > > Thanks > Girish > > > > > > > > -- ************************************************ Girish Pandit 610-517-5888 http://www.jiyasoft.com http://www.photographypleasure.com/ http://www.photographypleasure.com/girish/