John:

I'm not objecting to the XML, but to the very presence of "more than
one query in a request handler". Request handlers don't have, AFAIK,
"query chains". They have a list of defaults for the _single_ query
being sent at a time to that handler. So having

<str name="Query1"> blah blah </str>

is something I've never seen before, thus my weaseling that it may be
functionality that's new ;).

And also, AFAIK, there's no real sense of query chaining except
for the Rerank stuff.

That said, if you do want to use the results of one query in another
you can just put the whole thing into an fq clause (perhaps with
{!cache=false}. At that point you'd get back the top N does
that made it through the fq clause in score order.

Best,
Erick

On Wed, Jun 22, 2016 at 3:20 PM, John Bickerstaff
<j...@johnbickerstaff.com> wrote:
> Hi Erick -
>
> I was trying to simplify and not waste anyone's time parsing my
> requestHandler...  That is, as you imply, bogus xml.
>
> The basic question is:  If I have two "sub queries" in a single
> requestHandler, do they both run independently against the entire index?
>
> Alternatively, is there some kind of "chain of results" whereby (a la SQL)
> earlier result sets are passed to later subqueries and therefore those
> later subqueries are ONLY looking at the results of earlier subqueries?
>
> I have always assumed the former (each subquery runs agains the entire
> index) but I can't find documentation to prove it and I have some odd
> behavior (that I won't go into here yet) that suggests something else is
> happening...
>
> Oh - and thanks for the ReRanking mention!  That sounds like it may be
> quite useful!
>
> On Wed, Jun 22, 2016 at 12:08 AM, Erick Erickson <erickerick...@gmail.com>
> wrote:
>
>> Where are you seeing that this does anything? It wouldn't be the first time
>> new functionality happened that I totally missed, but I've never seen that
>> config.
>>
>> You might get some mileage out of ReRankingQParserPlugin though, that runs
>> the top N queries from one query through another.
>>
>> Best,
>> Erick
>> On Jun 21, 2016 2:43 PM, "John Bickerstaff" <j...@johnbickerstaff.com>
>> wrote:
>>
>> > Hi all,
>> >
>> > I have a question about whether sub-queries in Solr requestHandlers go
>> > against the total index or against the results of the previous query.
>> >
>> > Here's a simple example:
>> >
>> > <requestHandler name="/test1" class="solr.SearchHandler">
>> >
>> >         <str name="Query1">  {!edismax qf=blah, blah}</str>
>> >
>> >         <str name="Query2">  {!edismax qf=blah, blah}</str>
>> >
>> > </requestHandler>
>> >
>> > My question is:
>> >
>> > What does Query2 run "against"?
>> >   a. The entire Solr Index
>> >   b. The results of Query1
>> >
>> > If this is clearly documented anywhere, I'm very interested in a link.
>> >
>> > Thanks
>> >
>>

Reply via email to