No, I was rejecting BOTH methods 1 and 2. I was suggesting a different
method. I'll leave it to somebody else to describe the method so that it is
easier to understand.
-- Jack Krupansky
-----Original Message-----
From: Pavel Belenkovich
Sent: Thursday, May 22, 2014 4:00 AM
To: solr-user@lucene.apache.org
Subject: RE: multiple queries in single request
Hi Jack!
Thanx for the response!
So you say that using method 2 below (single request with ORs and sorting
results in client) is better than method 1 (separate requests)?
regards,
Pavel.
-----Original Message-----
From: Jack Krupansky [mailto:j...@basetechnology.com]
Sent: Thursday, May 22, 2014 01:26
To: solr-user@lucene.apache.org
Subject: Re: multiple queries in single request
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