I don't think you can use scripting while indexing. Scripting is more meant
to on-the-fly generate content that you don't have when retrieving docs,
for instance when searching, faceting etc.
Regarding the type question, it depends on where you load the value from.
Have a look here:
http://www.elasticsearch.org/guide/reference/modules/scripting/. If you
load it from disk, using the _source syntax, then it's going to be a
string, like in the json. If you load it from the document fields (field
data), it's going to be a long.
On Thursday, September 5, 2013 11:55:41 AM UTC+2, Adrian wrote:
On Thu, Sep 05, 2013 at 08:08:30AM +0000, Adrian wrote:
I wonder if it is possible to use scripts within an index statement?
In my scripts, I'd like to perform comparison on fields which are mapped
"date". Given the documentation, these types are json strings, but handled
Java long types internally. Using MVEL as scripting, I've found operators
value comparison. Can someone tell on which types (String vs. long) this
comparison is performed?
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firstname.lastname@example.org.
For more options, visit https://groups.google.com/groups/opt_out.