If you are in Solr 4 you could use realtime get and list the ids that you need. For example: http://host:port/solr/mycore/get?ids=my_id_1,my_id_2...
See http://lucidworks.lucidimagination.com/display/solr/RealTime+Get Tomás On Mon, Nov 19, 2012 at 5:27 PM, Otis Gospodnetic < otis.gospodne...@gmail.com> wrote: > Hi, > > How about id1 OR id2 OR id3? :) > > Otis > -- > Performance Monitoring - http://sematext.com/spm/index.html > Search Analytics - http://sematext.com/search-analytics/index.html > > > > > On Mon, Nov 19, 2012 at 2:40 PM, Dotan Cohen <dotanco...@gmail.com> wrote: > > > Suppose that an application needs to retrieve about 20-30 solr > > documents by id. The application could simply run 20 queries to > > retrieve them, but is there a better way? The id field is stored and > > indexed, of course. It is of type solr.StrField, and is configured as > > the uniqueKey. > > > > Thank you for any insight. > > > > -- > > Dotan Cohen > > > > http://gibberish.co.il > > http://what-is-what.com > > >