lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tomás Fernández Löbbe <tomasflo...@gmail.com>
Subject Re: Best way to retrieve 20 specific documents
Date Mon, 19 Nov 2012 20:35:25 GMT
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.gospodnetic@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 <dotancohen@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
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message