: I am using Solr 3.5, and would like to use a fq like : 'getField(getDoc(uuid:workspace_${workspaceId})), "isPublic"):true? ... : The use case is that I have workspace objects and workspace contains many : sub-objects, such as work files, comments, datasets and so on. And : workspace has a 'isPublic' field. If this field is true, then all : registered user could access this workspace and all its sub-objects. : Otherwise, only workspace member could access this workspace and its : sub-objects. : : So I want to use fq to determine whether document in question belongs to : public workspace or not. Is it possible?
if i'm understanding you correctly, there is no way to do what you want entirely at query time -- the recomended way to do something like this would be to to denormalize your data more when indexing, creating a single field that encapsulates this logic. you could probably create a custom query to do this type of logic, but i suspect it would not be very efficient. -Hoss