jprante / elasticsearch-knapsack

Knapsack plugin is an import/export tool for Elasticsearch
Apache License 2.0
472 stars 77 forks source link

Not able to export using elasticsearch query #90

Open ankitchheda opened 8 years ago

ankitchheda commented 8 years ago

Below is the example of elasticsearch query which I am trying to use to export specific fields from elasticsearch result.

curl -XPOST 'localhost:9200/user/user/_export' -d '{
  "fields": [
    "first_name", 
    "last_name"
  ], 
  "query": {
    "match_all": {}
  }, 
  "size": 10
}'