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

Michael Gibney commented on SOLR-16172:
---------------------------------------

Confirmed, this issue is indeed a special case of SOLR-12457. [~janhoy] I took 
the liberty of integrating your test from 
[apache/solr#827|https://github.com/apache/solr/pull/827], and with some minor 
adjustments it works nicely.

The core of the issue is that function ValueSource where the value is derived 
from a field do not carry a reference to the underlying SchemaField, so 
sortField marshalling doesn't work properly. The outstanding PR (originally 
against lucene/solr, today migrated to TLP solr) fixes this cleanly, I think, 
by allowing to bundle a reference to the schemaField along with the (wrapped) 
ValueSource.

> Error when combining Grouping with Childfield sorting with more than one 
> Shard 
> -------------------------------------------------------------------------------
>
>                 Key: SOLR-16172
>                 URL: https://issues.apache.org/jira/browse/SOLR-16172
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: SolrCloud, SolrJ
>    Affects Versions: 8.4.1, 8.10.1, 8.11.1
>            Reporter: Øystein Johnsen Veinan
>            Priority: Major
>         Attachments: SolrGroupError.zip, readme.txt
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> When combining Grouping with Childfield sorting with more than one Shard the 
> following error occures:
> *"Error from server at null: class java.lang.String cannot be cast to class 
> org.apache.lucene.util.BytesRef (java.lang.String is in module java.base of 
> loader 'bootstrap'; org.apache.lucene.util.BytesRef is in unnamed module of 
> loader org.eclipse.jetty.webapp.WebAppClassLoader @180e6ac4)"*
> To reproduce use the attached docker containers.
> Check out the file Readme.txt
> We believe that the error will occur in more than the affected versions. The 
> attached docker-compose file contain the version 8.11.1.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org
For additional commands, e-mail: issues-h...@solr.apache.org

Reply via email to