Friday, 15 January 2010

mvel - Issue with mvel2 - Elasticsearch -



mvel - Issue with mvel2 - Elasticsearch -

we running elasticsearch mass update (elasticsearch uses mvel)

and getting below error

**** compiler bug! study @ http://jira.codehaus.org/browse/mvel2 expression:

int cindex= 0; if(ctx._source.xid == 46461){ if(ctx._source.containskey("attributes") && ctx._source.attributes.size() > 0){ for(cindex = 0; cindex < ctx._source.attributes.size(); cindex++){ if(ctx._source.attributes[cindex].attributename != null && ctx._source.attributes[cindex].attributename.indexof("select") >= 0 && ((ctx._source.attributes[cindex].attributevalue == "oy") || (ctx._source.attributes[cindex].containskey("attributevalueid") && ctx._source.attributes[cindex].attributevalueid != null && ctx._source.attributes[cindex].attributevalueid == "one") && ctx._source.attributes[cindex].attributename == "attribute_select_1403272286210_2498")){ ctx._source.attributes[cindex].attributevalue = "oye"; ctx._source.attributes[cindex].attributevalueid = "one"; } } } }

it working fine few records , not working few records. did face issue? not sure if es has update mvel version around appreciated.

this issue seems fixed in "2.2.0", version of mvel using. can seek <mvel.version>2.2.0.final</mvel.version>

also please refer link here http://jira.codehaus.org/browse/mvel-299

elasticsearch mvel

No comments:

Post a Comment