DeleteByQueryPlugin无法解析为类型&& FRAMELESS_COMPILE_ENABLED:NoSuchFieldError

时间:2016-05-18 06:39:01

标签: elasticsearch playframework-2.0 elasticsearch-plugin

当我将elasticsearch升级到2.3.2并使用delete-by-query插件时,我有以下错误。代码是这样的

Sub ReplaceStringInFile()

Dim sBuf As String
Dim sTemp As String
Dim sFileName As String
Dim FileExt(2) As String

ruta = Application.ActiveWorkbook.Path

ChDrive ruta
ChDir ruta

FileExt(1) = "txt"
FileExt(2) = "xml"

For i = 1 To 2

  sFileName = Dir("*." & FileExt(i))

  Do

    If sFileName = "" Then Exit Do

    sTemp = ""
    Open sFileName For Input As #1
      Do Until EOF(1)
        Line Input #1, sBuf
        sTemp = sTemp & sBuf & vbCrLf
      Loop
    Close #1

    sTemp = Replace(sTemp, "THIS", "THAT")

    Open sFileName For Output As #1
      Print #1, sTemp
    Close #1

    sFileName = Dir()

  Loop

Next i

End Sub

错误:

 Settings settings = Settings.settingsBuilder().build();
    TransportClient transportClient = null;
    for (String node : nodes.trim().split(",")) {
    String[] parts = node.split(":");
    transportClient=TransportClient.builder().settings(settings)
    .addPlugin(DeleteByQueryPlugin.class).build();
    transportClient = transportClient.addTransportAddress(
    new    InetSocketTransportAddress(
    InetAddress.getByName(parts[0]),Integer.valueOf(parts[1]))); 

任何人都可以给我任何指示我如何解决这个错误

0 个答案:

没有答案