On Thu, Jun 30, 2011 at 6:19 PM, Ryan McKinley <ryan...@gmail.com> wrote:
> Hello-
>
> I'm looking for a way to find all the links from a set of results.  Consider:
>
> <doc>
>  id:1
>  type:X
>  link:a
>  link:b
> </doc>
>
> <doc>
>  id:2
>  type:X
>  link:a
>  link:c
> </doc>
>
> <doc>
>  id:3
>  type:Y
>  link:a
> </doc>
>
> Is there a way to search for all the links from stuff of type X -- in
> this case (a,b,c)

Do the links point to other documents somehow?
Let's assume that there are documents with ids of a,b,c

fq={!join from=link to=id}type:X

Basically, you start with the set of documents that match type:X, then
follow from "link" to "id" to arrive at the new set of documents.

-Yonik
http://www.lucidimagination.com

Reply via email to