Hey,
0.14.2 is looking good for us, The highlighting on source cut our
indexes sizes in half, thanks!!!
One thing I noticed is that one of our custom script fields broke with
this error:
Error: statically-typed variable already defined in scope: value
The script was basically:
String value = _source[fieldName];
// Return first x number of chars from the field
I guess the value variable is now defined by ES within the scripts
execution context? Seems like an unlucky collision. My advice is for
ES to prefix all the internal variables in that scope with something
like esInternal.
The update to my script to fix is trivial and similar in the future
can be avoided by using my own prefixing on my vars.
Hey,
0.14.2 is looking good for us, The highlighting on source cut our
indexes sizes in half, thanks!!!
One thing I noticed is that one of our custom script fields broke with
this error:
Error: statically-typed variable already defined in scope: value
The script was basically:
String value = _source[fieldName];
// Return first x number of chars from the field
I guess the value variable is now defined by ES within the scripts
execution context? Seems like an unlucky collision. My advice is for
ES to prefix all the internal variables in that scope with something
like esInternal.
The update to my script to fix is trivial and similar in the future
can be avoided by using my own prefixing on my vars.
Not sure exactly why, but this had to do with me using a variable
within the context of a script. On 14.2 here this example fails:
scriptBuilder.append("String test = "test";");
scriptBuilder.append("return test.length();");
Don't get why, but I can work directly off the _source variable, so
that makes more sense anyways.
Hey,
0.14.2 is looking good for us, The highlighting on source cut our
indexes sizes in half, thanks!!!
One thing I noticed is that one of our custom script fields broke with
this error:
Error: statically-typed variable already defined in scope: value
The script was basically:
String value = _source[fieldName];
// Return first x number of chars from the field
I guess the value variable is now defined by ES within the scripts
execution context? Seems like an unlucky collision. My advice is for
ES to prefix all the internal variables in that scope with something
like esInternal.
The update to my script to fix is trivial and similar in the future
can be avoided by using my own prefixing on my vars.
Can you recreate the regression with curl? I will check with mvel.
On Thursday, January 13, 2011 at 12:06 AM, Paul wrote:
Not sure exactly why, but this had to do with me using a variable
within the context of a script. On 14.2 here this example fails:
scriptBuilder.append("String test = "test";");
scriptBuilder.append("return test.length();");
Don't get why, but I can work directly off the _source variable, so
that makes more sense anyways.
Hey,
0.14.2 is looking good for us, The highlighting on source cut our
indexes sizes in half, thanks!!!
One thing I noticed is that one of our custom script fields broke with
this error:
Error: statically-typed variable already defined in scope: value
The script was basically:
String value = _source[fieldName];
// Return first x number of chars from the field
I guess the value variable is now defined by ES within the scripts
execution context? Seems like an unlucky collision. My advice is for
ES to prefix all the internal variables in that scope with something
like esInternal.
The update to my script to fix is trivial and similar in the future
can be avoided by using my own prefixing on my vars.
Can you recreate the regression with curl? I will check with mvel.
On Thursday, January 13, 2011 at 12:06 AM, Paul wrote:
Not sure exactly why, but this had to do with me using a variable
within the context of a script. On 14.2 here this example fails:
scriptBuilder.append("String test = "test";");
scriptBuilder.append("return test.length();");
Don't get why, but I can work directly off the _source variable, so
that makes more sense anyways.
Hey,
0.14.2 is looking good for us, The highlighting on source cut our
indexes sizes in half, thanks!!!
One thing I noticed is that one of our custom script fields broke with
this error:
Error: statically-typed variable already defined in scope: value
The script was basically:
String value = _source[fieldName];
// Return first x number of chars from the field
I guess the value variable is now defined by ES within the scripts
execution context? Seems like an unlucky collision. My advice is for
ES to prefix all the internal variables in that scope with something
like esInternal.
The update to my script to fix is trivial and similar in the future
can be avoided by using my own prefixing on my vars.
Can you recreate the regression with curl? I will check with mvel.
On Thursday, January 13, 2011 at 12:06 AM, Paul wrote:
Not sure exactly why, but this had to do with me using a variable
within the context of a script. On 14.2 here this example fails:
scriptBuilder.append("String test = "test";");
scriptBuilder.append("return test.length();");
Don't get why, but I can work directly off the _source variable, so
that makes more sense anyways.
Hey,
0.14.2 is looking good for us, The highlighting on source cut our
indexes sizes in half, thanks!!!
One thing I noticed is that one of our custom script fields broke with
this error:
Error: statically-typed variable already defined in scope: value
The script was basically:
String value = _source[fieldName];
// Return first x number of chars from the field
I guess the value variable is now defined by ES within the scripts
execution context? Seems like an unlucky collision. My advice is for
ES to prefix all the internal variables in that scope with something
like esInternal.
The update to my script to fix is trivial and similar in the future
can be avoided by using my own prefixing on my vars.
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.