Essentially, a subuery is an AND expression where you ask the database to find the identifier or set of identifiers to then use in the query outside the subquery.
The data that you put into a Solr index is flattened, denormalized. So take the suquery field values and put them in an AND part of the query to Solr. Dennis Gearon Signature Warning ---------------- It is always a good idea to learn from your own mistakes. It is usually a better idea to learn from others’ mistakes, so you do not have to make them yourself. from 'http://blogs.techrepublic.com.com/security/?p=4501&tag=nl.e036' EARTH has a Right To Life, otherwise we all die. ----- Original Message ---- From: Estrada Groups <estrada.adam.gro...@gmail.com> To: "solr-user@lucene.apache.org" <solr-user@lucene.apache.org> Sent: Tue, January 4, 2011 10:33:29 AM Subject: Re: Sub query using SOLR? I am +1 on the interest on how to do this! Adam On Jan 4, 2011, at 1:26 PM, bbarani <bbar...@gmail.com> wrote: > > Hi, > > I am trying to use subquery in SOLR, is there a way to implement this using > SOLR query syntax? > > Something like > > Related_id: IN query(field=ud, q=”type:IT AND manager_12:dave”) > > The thing I really want is to use output of one query to be the input of > another query. > > Not sure if it is possible to use the query() function (function query) for > my case.. > > Just want to know if ther is a better approach... > > Thanks, > Barani > -- > View this message in context: >http://lucene.472066.n3.nabble.com/Sub-query-using-SOLR-tp2193251p2193251.html > Sent from the Solr - User mailing list archive at Nabble.com.