Unfortunately you can't sort on a multi-valued field. In order to sort on a field it must be indexed but not multi-valued.
Have a look at the FieldOptions wiki page for a good description of what values to set for different use cases: http://wiki.apache.org/solr/FieldOptionsByUseCase -Jay www.lucidimagination.com On Wed, Sep 9, 2009 at 2:37 AM, Jörg Agatz <joerg.ag...@googlemail.com>wrote: > Hallo Friends, > > I have a Problem... > > my Search engins Server runs since a lot of weeks... > Now i gett new XML, and one of the fields ar Multivalue,, > > Ok, i change the Schema.xml, set it to Multivalue and it works :-) no Error > by the Indexing.. Now i go to the Gui, and will sort this Field, and BAM, i > cant sort. > > "it is impossible to sort a Tokenized field" > > Than i think, ok, i doo it in a CopyField and sort the CopyField.. > and voila, i dont get an error, but hie dosent sort realy, i get an output, > but no change by "desc" ore "asc" > > What can i do to sort this Field.. i thinkt, when i soert this field (only > Numbers) the file comes multible in the output, like this... > > > xml: > field aaa>1122</aaa> > field aaa>2211</aaa> > field aaa>3322</aaa> > > sort field aaa > > *1122* > 1134 > 1145 > *2211* > 2233 > 3355 > 3311 > 3312 > *3322* > ... > ... > ... > > i hope you have a idea, i am at the end with my ideas > > KingArtus >