Hi Johnny,

Sorting on a multivalued field has never really worked in Solr.
Solr versions <= 1.4.1 allowed it, but there was a change that an error
occurred and that the sorting might not be what you expect.
>From Solr 3.1 and up sorting on a multivalued isn't allowed and a http 400
is returned.

Duplicating documents or fields (what Peter describes) is as far as I know
they only option until Lucene supports sorting on multivalued fields
properly.

Martijn

2011/8/12 Péter Király <kirun...@gmail.com>

> Hi,
>
> There is no direct solution, you have to create single value field(s)
> to create search. I am aware of two workarounds:
>
> - you can use a random or a given (e.g. the first) instance of the
> multiple values of the field, and that would be your sortable field.
> - you can create two sortable fields: nnnn_min and nnnn_max, which
> contains the minimal and maximal values of the given field values.
>
> At least, that's what I do. Probably there are other solutions as well.
>
> Péter
> --
> eXtensible Catalog
> http://drupal.org/project/xc
>
>
> 2011/8/12 johnnyisrael <johnnyi.john...@gmail.com>:
> > Hi,
> >
> > I am currently using SOLR 1.4.1, With this version sorting working fine
> even
> > in multivalued field.
> >
> > Now I am planning to upgrade my SOLR version from 1.4.1 --> 3.3.0, In
> this
> > latest version sorting is not working on multivauled field.
> >
> > So I am in unable to upgrade my SOLR due to this drawback.
> >
> > Is there a work around available to fix this problem?
> >
> > Thanks,
> >
> > Johnny
> >
> > --
> > View this message in context:
> http://lucene.472066.n3.nabble.com/SOLR-3-3-0-multivalued-field-sort-problem-tp3248778p3248778.html
> > Sent from the Solr - User mailing list archive at Nabble.com.
> >
>



-- 
Met vriendelijke groet,

Martijn van Groningen

Reply via email to