i think do that wrote according to guideline.
https://github.com/elasticsearch/elasticsearch/blob/master/CONTRIBUTING.md

from elasticsearch version 0.90.7, was used delete-by-query-string query . 
at the one time. deleted approximately 250 doc. 
http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-query-string-query.html
 

and i did upgrade version to 1.2.0.
after that, i did meet up error screen. 
please help me .. 
thanks you.

# create index
curl -XPOST 'http://10.99.196.141:22000/delete_by_query_string_query_test1'

# create mapping
curl -XPUT
'http://10.99.196.141:22000/delete_by_query_string_query_test1/1/_mapping'
-d '{
    "properties":{
        "playId":{
            "type":"string",
            "index":"not_analyzed",
            "store":"true"
        }
    }
}'

# make doc
curl -XPOST
'http://10.99.196.141:22000/delete_by_query_string_query_test1/1' -d '{
  "playId": "1395395f-1543-44f7-ba11-fd8eff137afe"
}'


# delete by query string query
curl -XDELETE
'http://10.99.196.141:22000/delete_by_query_string_query_test1/1/_query?pretty=true'
-d '
{
    "query_string" : {
        "default_field" : "playId",
         "query" : "1395395f-1543-44f7-ba11-fd8eff137afe"    
    }
}
'

# response occured error - 
{
  "_indices" : {
    "delete_by_query_string_query_test1" : {
      "_shards" : {
        "total" : 2,
        "successful" : 0,
        "failed" : 2,
        "failures" : [ {
          "index" : "delete_by_query_string_query_test1",
          "shard" : 1,
          "reason" :
"RemoteTransportException[[10.99.196.141_21001][inet[/10.99.196.141:21001]][deleteByQuery/shard]];
nested: QueryParsingException[[delete_by_query_string_query_test1] request
does not support [query_string]]; "
        }, {
          "index" : "delete_by_query_string_query_test1",
          "shard" : 0,
          "reason" :
"RemoteTransportException[[10.101.63.182_21000][inet[/10.101.63.182:21000]][deleteByQuery/shard]];
nested: QueryParsingException[[delete_by_query_string_query_test1] request
does not support [query_string]]; "
        } ]
      }
    }
  }
}


somebody help me please.



--
View this message in context: 
http://elasticsearch-users.115913.n3.nabble.com/delete-by-query-string-query-is-not-working-with-1-2-0-tp4056754.html
Sent from the ElasticSearch Users mailing list archive at Nabble.com.

-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/1401420702674-4056754.post%40n3.nabble.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to