[
https://issues.apache.org/jira/browse/SOLR-18156?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Chris M. Hostetter resolved SOLR-18156.
---------------------------------------
Resolution: Fixed
> 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
> Affects Versions: 10.0
> Reporter: Chris M. Hostetter
> Assignee: Chris M. Hostetter
> Priority: Major
> Fix For: main(11.0), 10.1, 10.0.1
>
> 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]