Hmmm, I don't quite get this. Are you saying that you want to sort the documents or sort the content within the document?
Sorting documents (i.e the results list) requires a single-valued field. So you'd have to, at index time, sort the entries. Sorting the content within the document is something you'd have to do when you index, Solr doesn't rearrange the contents of a document. If all you want to do is display the results within the document in order, your app can do that as it builds the display page. Best Erick On Wed, Mar 28, 2012 at 9:02 AM, Abhishek tiwari <abhishek.tiwari....@gmail.com> wrote: > Hi , > i have multi valued field want to sort the docs order the particular > text eq:'B1' is added. > how i should query? ad_text is multivalued field. > > t > > <doc> > <arr name="ad_text"> > <str>B1</str> > <str>B2</str> > <str>B3</str> > </arr> > </doc> > <doc> > <arr name="ad_text"> > <str>B2</str> > <str>B1</str> > <str>B3</str> > </arr> > </doc> > > <doc> > <arr name="ad_text"> > <str>B1</str> > <str>B2</str> > <str>B3</str> > </arr> > </doc> > <doc> > <arr name="ad_text"> > <str>B3</str> > <str>B2</str> > <str>B1</str> > </arr> > </doc>