Re: JOIN, query on the parent?

2011-07-01 Thread Yonik Seeley
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


Re: JOIN, query on the parent?

2011-07-01 Thread Ryan McKinley
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


JOIN, query on the parent?

2011-06-30 Thread Ryan McKinley
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)

If I'm understanding the {!join stuff, it lets you search on the
children, but i don't really see how to limit the parent values.

Am I missing something, or is this a further extension to the JoinQParser?


thanks
ryan