lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lance Norskog <goks...@gmail.com>
Subject Re: HTTP ERROR: 500 - java.lang.ArrayIndexOutOfBoundsException
Date Sat, 17 Jul 2010 06:25:44 GMT
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.girish@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
goksron@gmail.com

Mime
View raw message