Commit 70e6e8d8 by amir

some commands

parent 795afe69
Showing with 22 additions and 0 deletions
# query less then date
curl -XPOST 'http://172.16.1.72:9200/activityidx/activity/_search' -d '{
"query": {
"range": {
"published": {
"lte": "now-90d"
}
}
}
}'
# delete by query
curl -XPOST 'http://172.16.1.72:9200/activityidx/activity/_delete_by_query' -d '{
"query": {
"range": {
"published": {
"lte": "now-90d"
}
}
}
}'
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment