Hey David,
Thanks for your reply.
Here is attached an example tweet that i'm inserting with this command :
curl -XPUT 'http://localhost:9200/twitter/tweet/1?ttl=1h' -d @tweet.json
When i'm running the following command
curl -XGET 'http://localhost:9200/twitter/tweet/_search' -d @query.json
I get more than 10000 results
If i try to delete by query with this one :
curl -XDELETE 'http://localhost:9200/twitter/tweet/_query' -d @query.json
Does it helps reproduce the error ?
Le 2013-05-13 à 18:13, David Pilato david@pilato.fr a écrit :
Hey Loic!
Could you share a full curl recreation of your problem?
I would like to reproduce it.Thanks
--
David Pilato | Technical Advocate | Elasticsearch.com
@dadoonet | @elasticsearchfr | @scrutmydocsLe 13 mai 2013 à 23:16, Loïc Bertron loic.bertron@gmail.com a écrit :
Hey guys,
I'm trying to delete some tweets i've been indexing automatically after 1h but even TTL or delete by query is not working.
When i set TTL, nothing happen.
Same result if i try this command :curl -XDELETE localhost:9200/twitter/_query -d '{
"query" : {
"filtered": {
"query": {"match_all": {}},
"filter": {"range": {
"created_at": {
"lt": "now-1h"
}
}}
}
}
}'What am i doing wrong ?
Loïc
--
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 elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.