[
https://issues.apache.org/jira/browse/SOLR-14678?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17162939#comment-17162939
]
Chris M. Hostetter commented on SOLR-14678:
-------------------------------------------
Source data for the sample queries to reproduce...
{noformat}
bin/solr -e cloud -noprompt
curl -sS 'http://localhost:8983/solr/gettingstarted/update' -H 'Content-Type:
application/json' --data-binary '[
{ "id": "P11!prod",
"name_s": "Swingline Stapler",
"description_t": "The Cadillac of office staplers ...",
"skus": [ { "id": "P11!S21",
"color_s": "RED",
"price_i": 42,
"docs": [ { "id": "P11!D41",
"name_s": "Red Swingline Brochure",
"content_t": "...",
} ],
},
{ "id": "P11!S31",
"color_s": "BLACK",
"price_i": 3,
} ],
"docs": [ { "id": "P11!D51",
"name_s": "Quick Reference Guide",
"content_t": "How to use your stapler ...",
},
{ "id": "P11!D61",
"name_s": "Warranty Details",
"content_t": "... lifetime garuntee ...",
} ]
},
{ "id": "P22!prod",
"name_s": "Mont Blanc Fountain Pen",
"description_t": "A Premium Writing Instrument ...",
"skus": [ { "id": "P22!S22",
"color_s": "RED",
"price_i": 89,
"docs": [ { "id": "P21!D41",
"name_s": "Red Mont Blanc Brochure",
"content_t": "...",
} ],
},
{ "id": "P22!S32",
"color_s": "BLACK",
"price_i": 67,
} ],
"docs": [ { "id": "P22!D52",
"name_s": "How To Use A Pen",
"content_t": "Start by removing the cap ...",
} ]
} ]'
{noformat}
> [child] DocTransformer doesn't work unless (request) fl inlcudes '*'
> --------------------------------------------------------------------
>
> Key: SOLR-14678
> URL: https://issues.apache.org/jira/browse/SOLR-14678
> Project: Solr
> Issue Type: Bug
> Security Level: Public(Default Security Level. Issues are Public)
> Reporter: Chris M. Hostetter
> Priority: Major
>
> Discovered this while working on SOLR-14383, affects at least 8.6, not sure
> how far back.
> Whatever the problem is, it seems specific to {{[child]}} transformer,
> doesn't affect things like {{[value]}}
> Here's some quick example queries showing the discrepancy in behavior...
> {noformat}
> hossman@slate:~$ curl
> 'http://localhost:8983/solr/gettingstarted/select?omitHeader=true&q=color_s:RED'
> {
>
> "response":{"numFound":2,"start":0,"maxScore":0.31506687,"numFoundExact":true,"docs":[
> {
> "id":"P11!S21",
> "color_s":"RED",
> "price_i":42,
> "_version_":1672933421950697472},
> {
> "id":"P22!S22",
> "color_s":"RED",
> "price_i":89,
> "_version_":1672933422124761088}]
> }}
> hossman@slate:~$ curl --globoff
> 'http://localhost:8983/solr/gettingstarted/select?omitHeader=true&q=color_s:RED&fl=id,price_i,[value+v=777]'
> {
>
> "response":{"numFound":2,"start":0,"maxScore":0.31506687,"numFoundExact":true,"docs":[
> {
> "id":"P11!S21",
> "price_i":42,
> "[value]":"777"},
> {
> "id":"P22!S22",
> "price_i":89,
> "[value]":"777"}]
> }}
> hossman@slate:~$ curl --globoff
> 'http://localhost:8983/solr/gettingstarted/select?omitHeader=true&q=color_s:RED&fl=id,price_i,[value+v=777],[child]'
> {
>
> "response":{"numFound":2,"start":0,"maxScore":0.31506687,"numFoundExact":true,"docs":[
> {
> "id":"P11!S21",
> "price_i":42,
> "[value]":"777"},
> {
> "id":"P22!S22",
> "price_i":89,
> "[value]":"777"}]
> }}
> hossman@slate:~$ curl --globoff
> 'http://localhost:8983/solr/gettingstarted/select?omitHeader=true&q=color_s:RED&fl=*,[value+v=777],[child]'
> {
>
> "response":{"numFound":2,"start":0,"maxScore":0.31506687,"numFoundExact":true,"docs":[
> {
> "id":"P11!S21",
> "color_s":"RED",
> "price_i":42,
> "_version_":1672933421950697472,
> "[value]":"777",
> "docs":[
> {
> "id":"P11!D41",
> "name_s":"Red Swingline Brochure",
> "content_t":"...",
> "_version_":1672933421950697472,
> "[value]":"777"}]},
> {
> "id":"P22!S22",
> "color_s":"RED",
> "price_i":89,
> "_version_":1672933422124761088,
> "[value]":"777",
> "docs":[
> {
> "id":"P21!D41",
> "name_s":"Red Mont Blanc Brochure",
> "content_t":"...",
> "_version_":1672933422124761088,
> "[value]":"777"}]}]
> }}
> {noformat}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]