I have elasticsearch 5.0.2 and I successfully installed the 5.0.0 version of the plugin.
-> Downloading org.codelibs:elasticsearch-dataformat:5.0.0 from maven central
[=================================================] 100%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: plugin requires additional permissions @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
* java.lang.RuntimePermission getClassLoader
See http://docs.oracle.com/javase/8/docs/technotes/guides/security/permissions.html
for descriptions of what these permissions allow and the associated risks.
Continue with installation? [y/N]y
-> Installed dataformat
I have the shakespeare index and the type act:
curl -XGET localhost:9200/shakespeare/act/_search
{"took":4,"timed_out":false,"_shards":{"total":5,"successful":5,"failed":0},"hits":{"total":180,"max_score":1.0,"hits":[{"_index":"shakespeare","_type":"act","_id":"0","_score":1.0,"_source":{"line_id":1,"play_name":"Henry IV","speech_number":"","line_number":"","speaker":"","text_entry":"ACT I"}},{"_index":"shakespeare","_type":"act","_id":"645","_score":1.0,"_source":{"line_id":646,"play_name":"Henry IV","speech_number":54,"line_number":"","speaker":"HOTSPUR","text_entry":"ACT II"}},{"_index":"shakespeare","_type":"act","_id":"2227","_score":1.0,"_source":{"line_id":2228,"play_name":"Henry IV","speech_number":81,"line_number":"","speaker":"FALSTAFF","text_entry":"ACT IV"}},{"_index":"shakespeare","_type":"act","_id":"16919","_score":1.0,"_source":{"line_id":16920,"play_name":"As you like it","speech_number":37,"line_number":"","speaker":"DUKE SENIOR","text_entry":"ACT III"}},{"_index":"shakespeare","_type":"act","_id":"18565","_score":1.0,"_source":{"line_id":18566,"play_name":"Antony and Cleopatra","speech_number":52,"line_number":"","speaker":"ROSALIND","text_entry":"ACT I"}},{"_index":"shakespeare","_type":"act","_id":"19181","_score":1.0,"_source":{"line_id":19182,"play_name":"Antony and Cleopatra","speech_number":31,"line_number":"","speaker":"CLEOPATRA","text_entry":"ACT II"}},{"_index":"shakespeare","_type":"act","_id":"20110","_score":1.0,"_source":{"line_id":20111,"play_name":"Antony and Cleopatra","speech_number":73,"line_number":"","speaker":"MENAS","text_entry":"ACT III"}},{"_index":"shakespeare","_type":"act","_id":"21066","_score":1.0,"_source":{"line_id":21067,"play_name":"Antony and Cleopatra","speech_number":67,"line_number":"","speaker":"DOMITIUS ENOBARBUS","text_entry":"ACT IV"}},{"_index":"shakespeare","_type":"act","_id":"22427","_score":1.0,"_source":{"line_id":22428,"play_name":"A Comedy of Errors","speech_number":132,"line_number":"","speaker":"OCTAVIUS CAESAR","text_entry":"ACT I"}},{"_index":"shakespeare","_type":"act","_id":"22712","_score":1.0,"_source":{"line_id":22713,"play_name":"A Comedy of Errors","speech_number":24,"line_number":"","speaker":"OF SYRACUSE","text_entry":"ACT II"}}]}}
Then I do the dump:
curl -o /tmp/data.csv -XGET "localhost:9200/shakespeare/act/_data?format=csv"
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 66 100 66 0 0 11666 0 --:--:-- --:--:-- --:--:-- 13200
I have elasticsearch 5.0.2 and I successfully installed the 5.0.0 version of the plugin.
I have the
shakespeare
index and the typeact
:Then I do the dump:
But the file I got:
It seems that it treats
_data
as a_id
for GET request ?