Description
The idea is to integrate Lucene's ToParentBlockJoinSortField
The approach to hookup it is a little bit tricky:
sort={!childfield bjq=$q field=COLOR_s}desc sort=\childfield(COLOR_s,$q) desc
the question no.1 wdyt about the syntax?
internally it creates a function query with valueSource which produces ToParentBlockJoinSortField
The main challenge is picking Solr field type from ToParentBlockJoinSortField, because as-is it's broken on mergeIds - ByteRefs need to be properly marshaled and unmarshalled by a field type from the child scope.
Attachments
Attachments
Issue Links
- is related to
-
SOLR-10701 sort=parentfield(name,{!child}) asc
- Open
- relates to
-
SOLR-12871 sort=childfield(currency_field) desc fails with exception about REWRITABLE field type
- Open
-
SOLR-10668 NPE on sort=childfield(field) desc
- Closed
-
LUCENE-7798 add equals/hashCode to ToParentBlockJoinSortField
- Resolved