No, I don't think you can do that with Solr. Somebody will correct me if I'm wrong. :)
What you are describing are SQL sub-queries and the closest things I can think of are using AND as I mentioned, and maybe using filter queries (the "fq" parameter). Otis -- Sematext is hiring -- http://sematext.com/about/jobs.html?mls Lucene, Solr, Nutch, Katta, Hadoop, HBase, UIMA, NLP, NER, IR ----- Original Message ---- > From: Vicky_Dev <vikrantv_shirbh...@yahoo.co.in> > To: solr-user@lucene.apache.org > Sent: Tue, November 10, 2009 1:23:07 AM > Subject: Re: Are subqueries possible in Solr? If so, are they performant? > > > Thanks Otis for your response. > > Is it possible to get result of one solr query feed into another Solr Query? > > Issue which I am facing right now is:: > I am getting results from one query and I just need 2 index attribute values > . These index attribute values are used for form new Query to Solr. > > Since Solr gives result only for GET request, hence there is restriction on > : forming query with all values. > > Please do send your views on above problem > > Thanks > ~Vikrant > > > > > Otis Gospodnetic wrote: > > > > You can mimic them by combining 2 clauses with an AND. > > e.g. > > cookies > > vs. > > cookies AND vanilla > > > > Otis > > -- > > Sematext is hiring -- http://sematext.com/about/jobs.html?mls > > Lucene, Solr, Nutch, Katta, Hadoop, HBase, UIMA, NLP, NER, IR > > > > > > > > ----- Original Message ---- > >> From: Vicky_Dev > >> To: solr-user@lucene.apache.org > >> Sent: Mon, November 9, 2009 1:48:03 PM > >> Subject: Re: Are subqueries possible in Solr? If so, are they performant? > >> > >> > >> > >> Hi Team, > >> Is it possible to write subqueries in dismaxrequest handler? > >> > >> ~Vikrant > >> > >> > >> Edoardo Marcora wrote: > >> > > >> > Does Solr have the ability to do subqueries, like this one (in SQL): > >> > > >> > SELECT id, first_name > >> > FROM student_details > >> > WHERE first_name IN (SELECT first_name > >> > FROM student_details > >> > WHERE subject= 'Science'); > >> > > >> > If so, how performant is this kind of queries? > >> > > >> > >> -- > >> View this message in context: > >> > http://old.nabble.com/Are-subqueries-possible-in-Solr--If-so%2C-are-they-performant--tp24467023p26271600.html > >> Sent from the Solr - User mailing list archive at Nabble.com. > > > > > > > > -- > View this message in context: > http://old.nabble.com/Are-subqueries-possible-in-Solr--If-so%2C-are-they-performant--tp24467023p26278872.html > Sent from the Solr - User mailing list archive at Nabble.com.