Shalin, Erik: Faceting is exactly what I was looking for (and didn't even know it). This is giving me precisely what I wanted.
Thanks for your help! brian -----Original Message----- From: Erik Hatcher [mailto:e...@ehatchersolutions.com] Sent: Friday, March 06, 2009 3:39 PM To: solr-user@lucene.apache.org Subject: Re: Multiple queries in single request If you're only after the count for those queries, use a standard request with a bunch of facet.query's. Erik On Mar 6, 2009, at 3:12 PM, Brian Knoth wrote: > Thanks for your comment. Yes, it would be simple if it was just 3 > queries, I really have about 50-60 I'd like to consolidate as a > single request. I'm simply getting a count of records for each > query, and right now, it takes about 40mS for each request as a > single query, but multiplied by about 50 or 60, brings me up into > the 1.5/2.0 second response time (to handle them all) > > I've got to believe that it would be much more efficient for the > search engine to know about all of these things that I want in one > request and generate a multi-response set. I'm kind of surprised > that this is not a more commonly requested capability. > > If anyone has any more suggestions, I'd appreciate hearing them. > > Thanks, > Brian > > -----Original Message----- > From: Shalin Shekhar Mangar [mailto:shalinman...@gmail.com] > Sent: Friday, March 06, 2009 2:55 PM > To: solr-user@lucene.apache.org > Subject: Re: Multiple queries in single request > > On Sat, Mar 7, 2009 at 12:27 AM, Brian Knoth > <bkn...@myperfectgig.com>wrote: > >> Apologies up front if this is a often-asked newbie question, but I've >> searched the solrhandler docs and I can't find what I'm interested >> in. >> >> I'd like to be able to present multiple queries to SOLR, for example: >> >> [(+a +b) ] >> [(+a +c)] >> [(+a+ d)] >> >> And get back a multi-result set (one for each query). I don't see >> that any >> of the default, included search handlers provide this capability? >> >> Is this possible, or would a custom handler need to be created. >> > > No but you can always fire three requests. Writing your own handler > which > prints data in a custom format means that you can no longer use > existing > solr clients for java/ruby/python etc. > > -- > Regards, > Shalin Shekhar Mangar.