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

Ryan Ernst commented on LUCENE-5806:
------------------------------------

Note that parsing is only necessary in the bindings if you want to use these 
dynamically.  If you know that fields are accessed through "doc" and they are 
"foo" and "bar", then simply adding the following to bindings should work (with 
ES syntax as an example):

{noformat}
"doc['foo'].value"
"doc['bar'].value"
{noformat}

> Extend expression grammar to allow advanced "variables"
> -------------------------------------------------------
>
>                 Key: LUCENE-5806
>                 URL: https://issues.apache.org/jira/browse/LUCENE-5806
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Ryan Ernst
>         Attachments: LUCENE-5806.patch
>
>
> We currently allow dots in "variable" names in expressions, so that we can 
> fake out object access.  We should extend this to allow array access as well 
> (both integer and string keys).  This would allow faking out full object 
> nesting through bindings.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to