You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Mikhail Khludnev (JIRA)" <ji...@apache.org> on 2017/05/17 20:53:04 UTC
[jira] [Updated] (SOLR-10521) sort by string field of the nested
child when searching with {!parent}
[ https://issues.apache.org/jira/browse/SOLR-10521?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mikhail Khludnev updated SOLR-10521:
------------------------------------
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.
was:
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.
> 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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org