Re: ToChildBlockJoinQuery question

2015-01-23 Thread Gregory Dearing
Hey Mike, My fault... I wasn't paying attention and thought I was replying to a response from James. No wonder it reminded me of our last conversation. :) -Greg On Thu, Jan 22, 2015 at 10:37 AM, Michael Sokolov < msoko...@safaribooksonline.com> wrote: > Yeah I know -- we've been around this bl

Re: ToChildBlockJoinQuery question

2015-01-22 Thread Michael Sokolov
TermQuerys works fine and does exactly what I wanted! Thanks very much for your help! Jim From: Michael Sokolov [msoko...@safaribooksonline.com] Sent: Thursday, January 22, 2015 11:45 AM To: java-user@lucene.apache.org Subject: Re: ToChildBlockJoinQuery q

RE: ToChildBlockJoinQuery question

2015-01-22 Thread McKinley, James T
help! Jim From: Michael Sokolov [msoko...@safaribooksonline.com] Sent: Thursday, January 22, 2015 11:45 AM To: java-user@lucene.apache.org Subject: Re: ToChildBlockJoinQuery question I think the idea is that you create a blockjoinquery that encapsulates the joi

Re: ToChildBlockJoinQuery question

2015-01-22 Thread Michael Sokolov
parent documents. ToChildBlockJoinQuery almost gives me what I want, but I really need to be able to filter the child docs returned as well as the parent from which they came. If you (or anybody) still thinks I'm doing it wrong please let me know. If I should file a bug report also let

RE: ToChildBlockJoinQuery question

2015-01-22 Thread McKinley, James T
e child docs returned as well as the parent from which they came. If you (or anybody) still thinks I'm doing it wrong please let me know. If I should file a bug report also let me know that, I have a small index I can provide if it is useful. Thanks again for your help. Jim ___

Re: ToChildBlockJoinQuery question

2015-01-22 Thread Michael Sokolov
Yeah I know -- we've been around this block before. I agree that the whole block indexing/searching feature is a bit confusing, trappy and error-prone, and it may be helpful to have those boundary conditions as signposts, but in my case relaxing the restriction enabled me to execute the querie

Re: ToChildBlockJoinQuery question

2015-01-22 Thread Gregory Dearing
Mike, I agree that it's not absolutely necessary to enforce children not being their own parent. I was just trying to describe the current implementation, and why you were seeing exceptions. The difference is mostly philosophical. The advantage of the current approach (in my opinion) is that it

Re: ToChildBlockJoinQuery question

2015-01-21 Thread Michael Sokolov
On 1/21/2015 6:59 PM, Gregory Dearing wrote: Jim, I think you hit the nail on the head... that's not what BlockJoinQueries do. If you're wanting to search for children and join to their parents... then use ToParentBlockJoinQuery, with a query that matches the set of children and a filter that m

Re: ToChildBlockJoinQuery question

2015-01-21 Thread Gregory Dearing
Jim, I think you hit the nail on the head... that's not what BlockJoinQueries do. If you're wanting to search for children and join to their parents... then use ToParentBlockJoinQuery, with a query that matches the set of children and a filter that matches the set of parents. If you're searching

RE: ToChildBlockJoinQuery question

2015-01-21 Thread McKinley, James T
in query, but the mailing list rejected my message, if there's a better place to send/upload this index let me know and I surely will. Thanks again for any help. Jim ____ From: Gregory Dearing [gregdear...@gmail.com] Sent: Wednesday, January 21, 2015 1:01 PM To: java-user@lucene.ap

Re: ToChildBlockJoinQuery question

2015-01-21 Thread Gregory Dearing
James, I haven't actually ran your example, but I think the source problem is that your source query ("NT:American") is hitting documents that have no children. The reason the exception is so weird is that one of your index segments contains zero documents that match your filter. Specifically, t

ToChildBlockJoinQuery question

2015-01-21 Thread McKinley, James T
Hi, I'm attempting to use ToChildBlockJoinQuery in Lucene 4.8.1 by following Mike McCandless' blog post: http://blog.mikemccandless.com/2012/01/searching-relational-content-with.html I have a set of child documents which are named works and a set of parent documents which are named persons tha