Is it possible to write nested queries in Solr similar to sql like query where I can take results of the first query and use one or more of its fields as an argument in the second query.
For example: field1:XYZ AND (_query_: field3:{value of field4}) This should search for all types of XYZ and then iterate over the result set and perform a query for where field3 is equal to the value of field1 from each item of the first result set. this is similar to SQL like query select distinct ( fieldA ) from table where fieldA IN