lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shane Strasser <>
Subject Re: Join Util with Filter Queries
Date Tue, 06 Aug 2013 20:53:38 GMT
So after looking into the problem, I've started to narrow it down a little
more. To answer your question, there were two reasons why it looked like
the filters were getting applied post join:

1) On my test cases that I've created, the correct documents were not
getting returned
to be me (I can supply the test file if you're curious).
2) When debugging my query, the fromQuery parameter only contains the query
string (q="") and none of the Filtered Query parameters. I'm using this
suggestion as a guide to build my query parser (creating my own
QParserPlugin and having that call the Join Utility class). When looking at
the query that gets passed into the join query, it is missing the filter
queries parameters. Those are getting stored somewhere and then are being
used post join. It's looking like that my problem isn't so much with the
join utility, but more with my query parser plugging class. Is there
something that it missing in the above link example that I need to also add
to mine to ensure that queries are applied pre join? Thanks.


On Fri, Aug 2, 2013 at 10:46 AM, Martijn v Groningen <> wrote:

> Hi,
> If you specify the FilteredQuery via the 'fromQuery' parameter, then they
> should be executed before the the join operation is performed.
> What makes you think that the FilteredQuery is applied post join?
> Martijn
> On 1 August 2013 22:33, Shane Strasser <> wrote:
> > Hey All,
> >
> > We're currently looking into using the Join Utility  (we're on version
> 4.0
> > and are in the process of moving to 4.3) and have started to prototype
> some
> > of the tools. One thing we'll need to be able to do is add filter
> queries.
> > The question I have is that based on the documentation it almost sounds
> > like the filters will be processed pre join. However, I'm observing that
> > the filters are getting applied post joining. Is this supposed to be the
> > case? If so, what would be the best way to modify the source so that
> > queries are applied pre join and not post join? Thanks.
> >
> > -Shane
> >
> --
> Met vriendelijke groet,
> Martijn van Groningen

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message