[ 
https://issues.apache.org/jira/browse/SOLR-6813?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14247963#comment-14247963
 ] 

Per Steffensen commented on SOLR-6813:
--------------------------------------

I would prefer making it work instead of saying that single-pass in not 
supported for expand-queries. But I guess that is easy for me to say :-)

If I understand you explanations correctly, expand-queries ought to (almost) 
always fail for distributed. Also when rows/start is not set (default start=0 
and rows=10). Can you explain why it does not fail in those cases
{code}
    query("q", "*:*", "fq", "{!collapse field="+group+"}", "defType", 
"edismax", "bf", "field(test_ti)", "expand", "true", "fl","*,score", 
ShardParams.DISTRIB_SINGLE_PASS, "true");
    query("q", "*:*", "fq", "{!collapse field="+group+"}", "defType", 
"edismax", "bf", "field(test_ti)", "expand", "true", "expand.sort", "test_tl 
desc", "fl","*,score", ShardParams.DISTRIB_SINGLE_PASS, "true");
    query("q", "*:*", "fq", "{!collapse field="+group+"}", "defType", 
"edismax", "bf", "field(test_ti)", "expand", "true", "expand.sort", "test_tl 
desc", "expand.rows", "1", "fl","*,score", ShardParams.DISTRIB_SINGLE_PASS, 
"true");
    //Test no expand results
    query("q", "test_ti:5", "fq", "{!collapse field="+group+"}", "defType", 
"edismax", "bf", "field(test_ti)", "expand", "true", "expand.sort", "test_tl 
desc", "expand.rows", "1", "fl","*,score", ShardParams.DISTRIB_SINGLE_PASS, 
"true");
    //Test zero results
    query("q", "test_ti:5434343", "fq", "{!collapse field="+group+"}", 
"defType", "edismax", "bf", "field(test_ti)", "expand", "true", "expand.sort", 
"test_tl desc", "expand.rows", "1", "fl","*,score", 
ShardParams.DISTRIB_SINGLE_PASS, "true");
    //Test page 2
    query("q", "*:*", "start","1", "rows", "1", "fq", "{!collapse 
field="+group+"}", "defType", "edismax", "bf", "field(test_ti)", "expand", 
"true", "fl","*,score", ShardParams.DISTRIB_SINGLE_PASS, "true");
{code}

Only the last one above fails?

> distrib.singlePass does not work for expand-request - start/rows included
> -------------------------------------------------------------------------
>
>                 Key: SOLR-6813
>                 URL: https://issues.apache.org/jira/browse/SOLR-6813
>             Project: Solr
>          Issue Type: Bug
>          Components: multicore, search
>            Reporter: Per Steffensen
>            Assignee: Joel Bernstein
>              Labels: distributed_search, search
>         Attachments: test_that_reveals_the_problem.patch
>
>
> Using distrib.singlePass does not work for expand-requests. Even after the 
> fix provided to SOLR-6812, it does not work for requests where you add start 
> and/or rows.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to