On Fri, Jul 1, 2011 at 9:06 AM, Yonik Seeley <yo...@lucidimagination.com> wrote:
> 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.
>

Yup -- that works.  Thank you!

ryan

Reply via email to