[ 
https://issues.apache.org/jira/browse/SOLR-9605?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15549417#comment-15549417
 ] 

Noble Paul commented on SOLR-9605:
----------------------------------

it's not that simple [~ysee...@gmail.com]

we have a lot of flexibility in our syntax .  I can specify 
{{child=/|/child1|child2}} . what if wish to add literal 'A' to the parent doc 
and literal 'B' to docs found under {{/child1}} and literal 'C' to docs found 
under {{/child2}}. 


I suggest the following 

{code}
f=x:'literal string' // this will add field 'x' as 'literal string' to root 
doc. The most common usecase equivalent to f=x@/:'literal string'
f=y@/child1:'literal string 2' // will add field 'y' to docs found under 
/child1 as 'literal srtring 2'
f=z@/child2:'literal string 2'  // will add field 'z' to docs found under 
/child2 as 'literal srtring 3'
{code}

> Add field literal support to /update/json/docs
> ----------------------------------------------
>
>                 Key: SOLR-9605
>                 URL: https://issues.apache.org/jira/browse/SOLR-9605
>             Project: Solr
>          Issue Type: Improvement
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: update
>            Reporter: Erik Hatcher
>            Assignee: Noble Paul
>            Priority: Minor
>
> [~noble.paul] suggests {{f=x:'literal string'}}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to