[
https://issues.apache.org/jira/browse/SOLR-18156?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18065206#comment-18065206
]
ASF subversion and git services commented on SOLR-18156:
--------------------------------------------------------
Commit 7a8b54c55a6711fbd1cc34aea336e1db20737233 in solr's branch
refs/heads/main from Chris M. Hostetter
[ https://gitbox.apache.org/repos/asf?p=solr.git;h=7a8b54c55a6 ]
SOLR-18156: Fix ClassCastException when using join queries with query-limits
(like timeAllowed)
> 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]