You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Uwe Schindler (JIRA)" <ji...@apache.org> on 2014/06/13 10:57:02 UTC
[jira] [Resolved] (LUCENE-5754) Allow "$" in expression variables
[ https://issues.apache.org/jira/browse/LUCENE-5754?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Uwe Schindler resolved LUCENE-5754.
-----------------------------------
Resolution: Fixed
> Allow "$" in expression variables
> ---------------------------------
>
> Key: LUCENE-5754
> URL: https://issues.apache.org/jira/browse/LUCENE-5754
> Project: Lucene - Core
> Issue Type: Improvement
> Components: modules/expressions
> Reporter: Uwe Schindler
> Assignee: Uwe Schindler
> Fix For: 4.9, 5.0
>
> Attachments: LUCENE-5754.patch, LUCENE-5754.patch
>
>
> The current expressions modules only allows ASCII letters, ASCII digits and the underscore in variable names.
> It is quite common to javascript developers to use also the dollar sign as identifier part (especially at the beginning of an identifier, see the famous "jQuery" $-function). This would allow bindings like "$score".
> The official ECMAScript spec allows the $: http://www.ecma-international.org/publications/files/ECMA-ST-ARCH/ECMA-262,%203rd%20edition,%20December%201999.pdf (see section 7.6)
> The other stuff there like unicode escapes and all unicode letter crazyness should be excluded for simplicity.
> Adding the "$" is just a one-line change in the grammar and does not conflict with anything else, because "$" is not a special character to javascript.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org