lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <>
Subject [jira] [Commented] (SOLR-10521) sort by string field of the nested child when searching with {!parent}
Date Fri, 28 Apr 2017 11:21:04 GMT


ASF subversion and git services commented on SOLR-10521:

Commit 189e50d9bcba4bd39e31fe6007ac56c1a882a61b in lucene-solr's branch refs/heads/branch_6x
from [~mkhludnev]
[;h=189e50d ]

SOLR-10521: adding sort=childfield(field,$q) asc for {!parent} query.

> sort by string field of the nested child when searching with {!parent}
> ----------------------------------------------------------------------
>                 Key: SOLR-10521
>                 URL:
>             Project: Solr
>          Issue Type: New Feature
>      Security Level: Public(Default Security Level. Issues are Public) 
>            Reporter: Mikhail Khludnev
>         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)
> 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

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message