[
https://issues.apache.org/jira/browse/LUCENE-5806?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ryan Ernst updated LUCENE-5806:
-------------------------------
Attachment: LUCENE-5806.patch
New patch with simplified grammar (thanks [~jdconradson]), and string
normalization. I am not doing whitespace normalization because the grammar
does not currently allow it (we can change that, but I didn't see why allowing
whitespace in the middle of variables would be useful?). I also added a helper
class to parse variable names into their pieces (array and member access), and
added demo examples for both static and dynamic use cases.
> 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, 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]