You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Chris M. Hostetter (Jira)" <ji...@apache.org> on 2020/07/22 16:47:00 UTC

[jira] [Created] (SOLR-14678) [child] DocTransformer doesn't work unless (request) fl inlcudes '*'

Chris M. Hostetter created SOLR-14678:
-----------------------------------------

             Summary: [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


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: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org