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

Mikhail Khludnev commented on SOLR-10521:
-----------------------------------------

[~jove4015],
Thanks for feedback. 
bq. Would it perhaps make more sense, and be easier on the QueryComponent
I wouldn't touch it ever, too many stuff has been injected into it already. 
However, solid approach always seems promising. Perhaps, it can be done in the 
dedicated component, and might be considered as a step in SOLR-10144
bq.  I feel like it would be easier to modify the "fl" parameter 
right, we already have \[child], and \[subquery] (I'm sorry about that). The 
problem is that {{sort}}, {{fl}} has completely different scope. Just one case, 
we might {{fl}} non-indexed child field, and {{sort}} by non-stored child field 
too. 

> sort by string field of the nested child when searching with {!parent}
> ----------------------------------------------------------------------
>
>                 Key: SOLR-10521
>                 URL: https://issues.apache.org/jira/browse/SOLR-10521
>             Project: Solr
>          Issue Type: New Feature
>      Security Level: Public(Default Security Level. Issues are Public) 
>            Reporter: Mikhail Khludnev
>             Fix For: 6.6, master (7.0)
>
>         Attachments: SOLR-10521-6x.patch, SOLR-10521.patch, SOLR-10521.patch, 
> SOLR-10521.patch, SOLR-10521.patch, SOLR-10521-raw.patch
>
>
> 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. 



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to