[
https://issues.apache.org/jira/browse/SOLR-14601?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17147415#comment-17147415
]
Thomas Taroni edited comment on SOLR-14601 at 6/28/20, 6:52 PM:
----------------------------------------------------------------
*,[child fl='*'],customer:[subquery] -> Has worked as you described.
After a few more checks i could say the following:
if [child] will be react and processed in the same way as [child fl=*] that is
a possible expected behavior.
currently it heavy to predict what exactly it has for side effects if [child]
is picking up every field from fl=.
I am absolutely also at the case that is it a bad idea to exclude something
here from ChildDocTransformer. On the other side it looks like the duplicate
check in SubQueryAugmenterFactory could also be improved. Is a [subquery] is
already processed by [child] it should be not processed a second time in fl=.
Will check that firstly a little bit deeper. Thanks for answering.
was (Author: thomas taroni):
*,[child fl='*'],customer:[subquery] -> Has worked as you described expected.
After a few more checks i could say the following:
if [child] will be react and processed in the same way as [child fl=*] that is
a possible expected behavior.
currently it heavy to predict what exactly it has for side effects if [child]
is picking up every field from fl=.
I am absolutely also at the case that is it a bad idea to exclude something
here from ChildDocTransformer. On the other side it looks like the duplicate
check in SubQueryAugmenterFactory could also be improved. Is a [subquery] is
already processed by [child] it should be not processed a second time in fl=.
Will check that firstly a little bit deeper. Thanks for answering.
> Using [child] and [subquery] DocTransformer / FieldList
> -------------------------------------------------------
>
> Key: SOLR-14601
> URL: https://issues.apache.org/jira/browse/SOLR-14601
> Project: Solr
> Issue Type: Bug
> Security Level: Public(Default Security Level. Issues are Public)
> Components: SearchComponents - other
> Affects Versions: master (9.0), 8.5.2
> Environment: Docker Container 8.5.2 from Docker Hub
> Already existing in 9.0.0
> Reporter: Thomas Taroni
> Priority: Major
>
> If you are using in the fl parameter something like that and
> luceneMatchVersion is higher or equals then 8.0.0 :
> fl=*,[child],customer:[subquery] or
> fl=*,customer:[subquery],[child]
> It ends Up in any case in the following error (BadRequest) inside the
> SubQueryAugmenterFactory:
> {code:java}
> // code placeholder
> if (conflictMap.containsKey(field)) {
> throw new SolrException(ErrorCode.BAD_REQUEST,"[subquery] name "+field+" is
> uplicated");
> } else {
> conflictMap.put(field, true);
> }
> {code}
> It looks like that the following Snippet in ChildDocTransformerFactory(8.5.2
> and 9.0.0) already have added that field to the context.
> {code:java}
> // code placeholder 8.5.2
> String childReturnFields = params.get("fl");
> SolrReturnFields childSolrReturnFields;
> if(childReturnFields != null) {
> childSolrReturnFields = new SolrReturnFields(childReturnFields, req);
> } else if(req.getSchema().getDefaultLuceneMatchVersion().major < 8) {
> // ensure backwards for versions prior to SOLR 8
> childSolrReturnFields = new SolrReturnFields();
> } else {
> childSolrReturnFields = new SolrReturnFields(req);
> }
> {code}
> {code:java}
> // code placeholder master 9.0.0
> String childReturnFields = params.get("fl");
> SolrReturnFields childSolrReturnFields;
> if (childReturnFields != null) {
> childSolrReturnFields = new SolrReturnFields(childReturnFields, req);
> } else {
> childSolrReturnFields = new SolrReturnFields(req);
> }
> {code}
> It looks like childReturnFields includes also the customer:[subquery],
> eventually is a good idea to remove fields from other AugmenterFactories like
> [shard] or [subquery] from the childReturnFields variable
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]