I found the solution.
http://dzoessolr020:8080/solr4/person/select/? &q= ( ( ( GenderSFD:Male ) AND {!join from=PersonID to=CoreID fromIndex=personjob v='((CoCompanyName:"hospital") OR (PoPositionsAllS:"developer"))'} AND {!join from=DocPersonAttachS to=CoreID fromIndex=document v='(DocNameS:" PeterRES")'} ) -- View this message in context: http://lucene.472066.n3.nabble.com/Complex-query-combining-fq-and-q-with-join-tp4091563p4091725.html Sent from the Solr - User mailing list archive at Nabble.com.