We are executing some concurrent updates on the same document using an MVEL
script together with some parameters.
The MVEL script contains some functions such as "addRelations" etc but
there is no sign of duplicate functions.
I'd port to groovy and try again. MVEL is on its way out and has some
stability issues anyway. Like, I really think it has some problems
compiling multiple MVEL scripts concurrently.
We are executing some concurrent updates on the same document using an
MVEL script together with some parameters.
The MVEL script contains some functions such as "addRelations" etc but
there is no sign of duplicate functions.
The problem with MVEL that you can't redefine defined function in a script
instance. Script class instantiates once the query starts, and then it's
executing it again and again. MVEL is bad for complex scripting.
Yes, you could use groovy,and should
I found a good way to use it with the next code:
import groovy.lang.Script class MyScript extends Script { def run() {
// your code is here, also binded variables should be available here
}
}
So how it works:
Groovy compiles this script and put to class cache.
One each query MyScript instance is created (on per node)
On each document run() method is executed (It should provide different
return values for filter script, score script, sort script, script fields)
Alex
On Wednesday, August 27, 2014 5:50:11 PM UTC+3, k...@stylelabs.com wrote:
Hello
We are executing some concurrent updates on the same document using an
MVEL script together with some parameters.
The MVEL script contains some functions such as "addRelations" etc but
there is no sign of duplicate functions.
Ok thanks for the info, we ported the mvel script to groovy and the
concurrent operations seem to succeed now
On Wednesday, August 27, 2014 4:50:11 PM UTC+2, k...@stylelabs.com wrote:
Hello
We are executing some concurrent updates on the same document using an
MVEL script together with some parameters.
The MVEL script contains some functions such as "addRelations" etc but
there is no sign of duplicate functions.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.