Expressions module, support of Strings

David Smiley <[email protected]> Wed, 7 May 2025 14:55:04 -0400
Newsgroups gmane.comp.jakarta.lucene.user
Message-ID <CAKwGGTEH8yT6zaPX+MRhswG9sz6_SDqv0TYDVmGdSoPQR4pmoQ@mail.gmail.com>
I've been looking at the Expressions module, a really impressive piece of
work!

The "JavaScript" sub-package only appears to support an extreme subset of
JavaScript, one where the only data type is a double.  I don't see that it
supports Strings/text, to include passing Strings to methods and resolving
String data from a binding.  Can someone confirm this?  What would it take
to expand that?

I can see that Javascript.g4 (Antlr grammar) references a "STRING" but
can't make out if/how it's used in JavaScriptCompiler.

~ David Smiley
Apache Lucene/Solr Search Developer
http://www.linkedin.com/in/davidwsmiley