Nothing special for this use case.
This seems to be a use case that I would call "bulk data retrieval - based
on ID".
I would suggest "batching" your requests - limit each request query to, say,
50 or 100 IDs.
-- Jack Krupansky
-----Original Message-----
From: Pavel Belenkovich
Sent: Wednesday, May 21, 2014 1:07 PM
To: solr-user@lucene.apache.org
Subject: multiple queries in single request
Hi,
I have list of 1000 values for some field which is sort of id (essentially
unique between documents)
(let's say firstname_lastmane).
I need to get the document for each id (to know which document is for which
id, not just list of responses).
Is there some support for multiple queries in single Solr request?
I saw old posts requesting that but don't know if it's been implemented yet.
There are 2 methods I can think of to achieve the result:
1 - trivial - make separate request per value. I think it's very
inefficient.
2- Perform single request with OR on all values.
Then loop over the responses and match them to requested values.
This would also require making the field stored.
Can you propose better option?
thanx,
Pavel