0

我们正在运行 Elasticsearch 批量更新(elasticsearch 使用 MVEL)

而且我们正在低于错误

**** 编译器错误!立即在http://jira.codehaus.org/browse/mvel2 上 报告此问题

 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";
            }
        }
    }
}

它适用于少数记录,但不适用于少数记录。有人遇到过这个问题吗?不确定 ES 是否必须更新 mvel 版本 任何周围都值得赞赏。

4

1 回答 1

0

This issue seems to be fixed in "2.2.0", which version of MVEL you are using. Can you try with <mvel.version>2.2.0.Final</mvel.version>

Also please refer the link here http://jira.codehaus.org/browse/MVEL-299

于 2014-06-24T05:59:00.087 回答