0

ElasticSearch Rest コンポーネントを使用してすべてのレコードを取得する方法

.setBody(constant("{}"))
            .toD("elasticsearch-rest://elasticsearch?operation=${bean:elasticOperation?method=choiceOperation}&indexName=${exchangeProperty.index}&useScroll=true")

他のクエリは正常に機能します

 .setBody(constant("{\n" +
                    "        \"query\": {\n" +
                    "            \"match\": {\n" +
                    "                \"_id\": \"XxmGZnoBhq--3N_vqvr5\"\n" +
                    "            }\n" +
                    "        }\n" +
                    "    }"))
            .toD("elasticsearch-rest://elasticsearch?operation=${bean:elasticOperation?method=choiceOperation}&indexName=${exchangeProperty.index}&useScroll=true")

例外は

{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"query malformed, empty clause found at [1:2]"}],"type":"illegal_argument_exception","reason":"query malformed, empty clause found at [1:2]"},"status":400}
4

0 に答える 0