lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dennis Gearon <>
Subject Re: Sub query using SOLR?
Date Tue, 04 Jan 2011 18:49:29 GMT
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 

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 

 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 ''

EARTH has a Right To Life,
otherwise we all die.

----- Original Message ----
From: Estrada Groups <>
To: "" <>
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!


On Jan 4, 2011, at 1:26 PM, bbarani <> 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: 
> Sent from the Solr - User mailing list archive at

View raw message