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
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
Hi Greg,
Thanks for responding to my question. I added some extra conditions to the
IndexRunnable run method, namely I required AGTY:np in the source query for the
parent docs and required that both the creatorDocs and workDocs actually
contain documents or else the addDocuments call would nev
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
I'm asking this, because QueryBuilder.createFieldQuery in some cases
returns MultiPhraseQuery. I need to know on which terms from
MultiPhraseQuery match is present. Explanation doesn't give answer on this
question. It only returns string, based on these terms, see
MultiPhraseQuery.toStirng() method
Are you asking if your two suggestions
1) a MultiPhraseQuery or
2) a BooleanQuery made up of multiple PhraseQuery instances
are equivalent? If so, I'd say that they could be if you build them
carefully enough. For the specific examples you show I'd say not and
would wonder if you get correct h
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
ku3ia wrote
> Hi folks!
> I have a multiphrase query, for example, from units:
>
> Directory indexStore = newDirectory();
> RandomIndexWriter writer = new RandomIndexWriter(random(), indexStore);
> add("blueberry chocolate pie", writer);
> add("blueberry chocolate tart", writer);
> IndexReader r =