elasticdump --input="http://계정ID:계정PW@localhost:9200/indexName --output="./indexName.json" --searchBody="$query" --limit=1000 -type=data 예시 elasticdump --input="http://elastic:test11@localhost:9200/test --input-index= --output="./test.json --searchBody="$query" --limit=1000 --type=data
2개의 인덱스를 각 2개의 bulk request에 담으면 에러 발생 하나의 bulk request를 이용하니까 정상동작 하나의 bulk request에 2가지 인덱스 request를 담아서 보낼수있다bulkrequest.add(new IndexRequest(indexName1) .source(line, XContentType.JSON);bulkrequest.add(new IndexRequest(indexName2) .source(line, XContentType.JSON); 위와 같이 사용할수있다 괜히 2개의 bulk request 쓰려다가 시간만 날렸다
curl 명령어에 -H 'Content-Type: application/json' 추가ex) curl -XPUT 'localhost:9200/test/_mapping' -H 'Content-Type: application/json' -d '{"properties": { "createDate": { "type": "date" } } }'