hello folks,
Can you use conditions in the script fields. for example
If A<0 then A+B else A-B, where A and B are the fields with datatype number.
thanks in advance...!!!!!!
Regrads
Mohit Kumar Yadav
--
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 elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAK6eDKcEVFyfMRSazLP3FFDhK7A4sckUGfC2_YExFXmvPBuQDA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Mohit,
I do conditional processing in script fields in my code, so yes, very
possible. Elasticsearch by default uses mvel for scripting which has full
flow control support. See http://mvel.codehaus.org/MVEL+2.0+Control+Flow
for details.
Bruce
--
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 elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/82759964-12e7-44c2-8d64-b0e0bf9824ef%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.