Assuming that you just want to sort - have you tried using sort=id desc
Cheers, Siegfried Goeschl On 04 Jun 2014, at 06:19, sachinpkale <sachinpk...@gmail.com> wrote: > I have a following field in SOLR schema. > > <fieldType name="integer" class="solr.IntField" omitNorms="true"/> > <field name="id" type="integer" indexed="true" stored="true" > required="false" multiValued="false"/> > > If I issue following query: > > id:(1234 OR 2345 OR 3456) > > SOLR does not return the documents in that order. It is giving document with > id 3456, then with 1234 and then with 2345. > > How do I get it in the same order as in the query? > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/SOLR-getting-documents-in-the-given-order-tp4139722.html > Sent from the Solr - User mailing list archive at Nabble.com.