Chris M. Hostetter created SOLR-18156:
-----------------------------------------
Summary: 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
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]