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> 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
>
>
>



-- 
Lance Norskog
goks...@gmail.com

Reply via email to