[
https://issues.apache.org/jira/browse/SOLR-5707?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14028887#comment-14028887
]
Uwe Schindler commented on SOLR-5707:
-------------------------------------
bq. ...i'm not really a fan of that syntax though – I haven't played around
with expressions enough yet to know what kinds of "variable" names are allowed,
but if we can use variables like $1 in expressions, then the Bindings could
look for the $ prefix and map those directly to the positional function args
w/o needing the explicit positional-bindings configuration which would be much
cleaner.
{{$}} is not a special character in Javascript, so it can be part of a variable
or function name. One famous example is the $-Function in JQuery:
{{$('.class')}}. If the Lucene Expressions parser is not "special" it should
accept {{$1}} as variable name in the binding and the expression parser itsself.
Another good thing (maybe as extension to expressions): It would be cool, if
the JavaScript compiler could "report" back all variable used in the expression
after compiling. We could then somehow automatically map them (but would not
help with positional args).
> Lucene Expressions in Solr
> --------------------------
>
> Key: SOLR-5707
> URL: https://issues.apache.org/jira/browse/SOLR-5707
> Project: Solr
> Issue Type: New Feature
> Reporter: Ryan Ernst
> Attachments: SOLR-5707.patch, SOLR-5707_vsp.patch
>
>
> Expressions should be available for use in Solr.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]