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

Andrzej Bialecki commented on SOLR-18156:
-----------------------------------------

+1.

> JoinQuery class cast exception on SolrIndexSearcher when using timeAllowed
> --------------------------------------------------------------------------
>
>                 Key: SOLR-18156
>                 URL: https://issues.apache.org/jira/browse/SOLR-18156
>             Project: Solr
>          Issue Type: Bug
>            Reporter: Chris M. Hostetter
>            Assignee: Chris M. Hostetter
>            Priority: Major
>         Attachments: SOLR-18156.patch
>
>
> Beginning with Solr 10.0.0, attempting to use any of the {{join}} QParsers in 
> conjunction with QueryLimits results in a ClassCastException.
> This is because {{JoinQuery.createWeight(...)}} expects it will only ever be 
> called with a {{{}SolrIndexSearcher{}}}, but 
> {{SolrIndexSearcher.seach(Query,Collector)}} is overriddent to create an 
> anonymous {{IndexSearcher}} to use when QueryLimits are enabled.
> This was not a problem in Solr 9.x, because back then the logic for creating 
> an anonymous {{IndexSearcher}} was inside the overridden 
> {{SolrIndexSearcher.seach(List<LeafReaderContext>,Weight,Collector)}} (after 
> the {{Weight}} instance had already been created using the original 
> {{{}SolrIndexSearcher{}}})



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to