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

Russell Black commented on SOLR-3196:
-------------------------------------

I looked into writing a test case for this, but ran into some difficulties.  
The problem is that for the small data sets used by the test cases, all queries 
return within 1 millisecond, so I can't force the timeout.  (1 ms is the lowest 
value supported for the timeAllowed parameter, passing 0 is the same as not 
passing a timeout).  I haven't been able to come up with a query that takes 
sufficiently long to test {{timeAllowed}}.  It appears that there are no test 
cases that test for the presence of the {{partialResults}} header even for 
non-distributed searches.  I am confident that this patch works, however, since 
I have tested it thoroughly in our own index.  It's a pretty uncomplicated 
patch.  
                
> partialResults response header not propagated in distributed search
> -------------------------------------------------------------------
>
>                 Key: SOLR-3196
>                 URL: https://issues.apache.org/jira/browse/SOLR-3196
>             Project: Solr
>          Issue Type: Bug
>          Components: search
>    Affects Versions: 3.5, 4.0
>            Reporter: Russell Black
>              Labels: patch
>         Attachments: SOLR-3196-partialResults-header.patch
>
>
> For {{timeAllowed=true}} requests, the response contains a {{partialResults}} 
> header that indicates when a search was terminated early due to running out 
> of time.  This header is being discarded by the collator.  Patch to follow.  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

Reply via email to