Hello - I am an elasticsearch newbie and after doing a lot of reading, I think I need to use scripts to accomplish my objectives. Basically, we are indexing and searching documents already, and now we need to do a non-trivial financial calculation based on user-provided inputs. The output of the calculation depends on the users inputs, and he output of the calculation will be a field in the results (a script_field ?) as well as used to filter/query the results (a filter script?).
#1) I'd like to have the same script/function be used for the script_field and the filter script to avoid code duplication - is this possible? #2 ) Do I need to install my script inside elasticsearch (rather than pass it in my query) in order to achieve this? It seems like that would be better for performance as well, which leads me to my next question: #3) Should I write the script in Java for performance reasons? I have no experience with MVEL, and I know Java already - is Java faster than MVEL for number crunching? Thanks in advance for any advice you might have! Greg -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/ab8e3d97-4d89-4f2e-bcbe-7fca5ee66a7f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
