Hello Luke,

If I get you right, you need to combine parent (block join) queries e.g
users who have a record with item1 AND users who have a record with item2.

Does it make sense? If it does, do you need to figure out a syntax?
28.03.2014 14:19 пользователь "mertens" <lmert...@gmail.com> написал:

> Hello Solr Users,
>
> In my system I have multiple records belonging to users, and I need to
> perform a query to find users who have records that meet the criteria of
> that query. For example, if my record has the field "search" and I query
> for
> search:((item1 AND item2) NOT item3), I want to find all users that have
> one
> or more records with item1 and one or more records with item2 but no
> records
> containing item3.
>
> I have investigated the block join parent query which comes close to the
> functionality that I need, but it appears to apply the entire query to each
> individual child document, rather than across all child documents.
>
> At the moment the only solutions I can think of are to combine all the user
> records into one giant document for each user or do some sort of OR query
> to
> get all documents with partial matches for each user and then manually
> verify that my result document set satisfies my criteria. Neither of these
> solutions sounds very attractive to me. Does anyone else have any advice or
> recommendations for this scenario?
>
> Thanks,
> Luke
>
>
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/Block-Join-Parent-Query-across-children-docs-tp4127637.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>

Reply via email to