Created
December 6, 2012 06:56
-
-
Save anonymous/4222311 to your computer and use it in GitHub Desktop.
es_deletebyquery
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Query: | |
curl -XDELETE 'http://localhost:9200/_all/_query' -d '{ | |
"ids" : { | |
"values" : ["1" ,"2", "3"] | |
} | |
}' | |
Response: | |
{"ok":true,"_indices":{"twitter":{"_shards":{"total":5,"successful":0,"failed":5}},"com.test":{"_shards":{"total":5,"successful":0,"failed":5}}}} | |
Exception: | |
[2012-12-11 19:42:20,904][DEBUG][action.deletebyquery ] [Domina] [twitter][0], node[ZbyXGSfzTiG5waNKfzK3bA], [P], s[STARTED]: Failed to execute [delete_by_query {[twitter][], query [{ | |
"ids" : { | |
"values" : ["1" ,"2", "3"] | |
} | |
}]}] | |
org.elasticsearch.index.query.QueryParsingException: [twitter] Failed to parse | |
at org.elasticsearch.index.query.IndexQueryParserService.parse(IndexQueryParserService.java:186) | |
at org.elasticsearch.index.query.IndexQueryParserService.parse(IndexQueryParserService.java:175) | |
at org.elasticsearch.index.shard.service.InternalIndexShard.prepareDeleteByQuery(InternalIndexShard.java:352) | |
at org.elasticsearch.action.deletebyquery.TransportShardDeleteByQueryAction.shardOperationOnPrimary(TransportShardDeleteByQueryAction.java:80) | |
at org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$AsyncShardOperationAction.performOnPrimary(TransportShardReplicationOperationAction.java:487) | |
at org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$AsyncShardOperationAction$1.run(TransportShardReplicationOperationAction.java:400) | |
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) | |
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) | |
at java.lang.Thread.run(Thread.java:680) | |
Caused by: java.lang.NullPointerException | |
at org.elasticsearch.index.query.IdsQueryParser.parse(IdsQueryParser.java:96) | |
at org.elasticsearch.index.query.QueryParseContext.parseInnerQuery(QueryParseContext.java:176) | |
at org.elasticsearch.index.query.IndexQueryParserService.parse(IndexQueryParserService.java:232) | |
at org.elasticsearch.index.query.IndexQueryParserService.parse(IndexQueryParserService.java:182) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment