[
https://issues.apache.org/jira/browse/SOLR-502?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12602550#action_12602550
]
Sean Timm commented on SOLR-502:
--------------------------------
Sorry about the timeallowed parameter. For some reason I had in my head that
the parameters were not supposed to be camel case and I only switched the
parameter variable names.
You should be seeing a log message similar to:
{noformat}
WARNING: Query: title:s*; Elapsed time: 20Exceeded allowed search time: 1 ms.
{noformat}
even with the previous patch. Though, when using distributed search, the new
binary response is used which I hadn't modified to include partial results
support. It should work with this new patch.
{noformat}
<lst name="responseHeader">
<int name="status">0</int>
<int name="QTime">39</int>
<lst name="params">
<str
name="shards">naan.office.aol.com:8973/solr,naan.office.aol.com:8993/solr</str>
<str name="indent">on</str>
<str name="start">0</str>
<str name="q">headline:s*</str>
<str name="timeAllowed">1</str>
<str name="version">2.2</str>
<str name="rows">100</str>
</lst>
</lst>
<result name="response" numFound="0" start="0" partialResults="true"/>
{noformat}
bq. If timeallowed=1, should I ever be seeing QTime over 1?
Yes, the TimeLimitedCollector can only interrupt searches during the collect()
calls. Other, sometimes substantial, work is done outside of the collect().
Also, see the note in the TimeLimitedCollector.setResolution(long) Javadocs
http://hudson.zones.apache.org/hudson/job/Lucene-trunk/javadoc//org/apache/lucene/search/TimeLimitedCollector.html#setResolution(long)
> Add search time out support
> ---------------------------
>
> Key: SOLR-502
> URL: https://issues.apache.org/jira/browse/SOLR-502
> Project: Solr
> Issue Type: New Feature
> Components: search
> Reporter: Sean Timm
> Assignee: Otis Gospodnetic
> Priority: Minor
> Fix For: 1.3
>
> Attachments: SOLR-502.patch, SOLR-502.patch, SOLR-502.patch,
> solrTimeout.patch, solrTimeout.patch, solrTimeout.patch, solrTimeout.patch,
> solrTimeout.patch
>
>
> Uses LUCENE-997 to add time out support to Solr.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.