Compare commits
131 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b390193dcc | |||
| df76154388 | |||
| 3e2a823a72 | |||
| 8a1bb2665e | |||
| 3acee8b266 | |||
| 60a1f298d7 | |||
| e7c40dd459 | |||
| 86361daea5 | |||
| 09c2ff8bf3 | |||
| 75d85cae19 | |||
| e30079f64d | |||
| 610bf851d2 | |||
| b91ff8a6cc | |||
| b39f29b2b0 | |||
| ef69bbd216 | |||
| 6194119e62 | |||
| a4bff1c2f0 | |||
| 8e86450aeb | |||
| 90be646658 | |||
| af8bef4892 | |||
| 2504563480 | |||
| 1e55d2a099 | |||
| 23fbc15e1a | |||
| 5b12e8a123 | |||
| c65119bd53 | |||
| 708f9abe3e | |||
| a55856c60b | |||
| 126c277496 | |||
| 23341d5f2a | |||
| c3993f9145 | |||
| c7dd19bfcf | |||
| a018d49442 | |||
| f2a0abf76a | |||
| 85731864bf | |||
| f6abf6e093 | |||
| d7fc4f7b03 | |||
| a9c054ff21 | |||
| 1810f5f0c3 | |||
| edfa527d2d | |||
| 05921b134d | |||
| aadf44bbf2 | |||
| bef1604a8d | |||
| 87fb0a2996 | |||
| 456fc19c94 | |||
| 4c118b9f9a | |||
| dc5c041b07 | |||
| 6774560444 | |||
| 3f1a15bc4e | |||
| 06b3a1ceb7 | |||
| a83cf7b26f | |||
| 30c3afe150 | |||
| 0efa0df934 | |||
| b2fbcfd8e2 | |||
| cfcff78a7e | |||
| bf482cf269 | |||
| f9e2d5f708 | |||
| ed8adba2ab | |||
| 098aef0a58 | |||
| 6d5b5f6af3 | |||
| 02ad9a9759 | |||
| 965536b369 | |||
| 5c144154ad | |||
| a52cf6be38 | |||
| c91ceb12d8 | |||
| c1eadd6e88 | |||
| d080f1bdad | |||
| 14fc908d4b | |||
| 7d810f8110 | |||
| 962e26f791 | |||
| ee36f7b43f | |||
| 8a85738258 | |||
| d06f67d881 | |||
| c67a5dfdc2 | |||
| 885147b889 | |||
| 3c99839e4a | |||
| 24da41e994 | |||
| 662e4d5ca7 | |||
| 1afa23b11d | |||
| 48c6ad15a6 | |||
| 48233503f7 | |||
| 11c7475566 | |||
| e530ed2313 | |||
| 59b9403fdc | |||
| 01ab682fb7 | |||
| b11e7ffc9f | |||
| 11da9a4650 | |||
| 352a2c3652 | |||
| 5ce9f55481 | |||
| e7f7993407 | |||
| baac03846e | |||
| 41050f23f5 | |||
| 2daa6d35c6 | |||
| 9bcfc08b20 | |||
| 45744762d3 | |||
| 516139c48e | |||
| 29091da864 | |||
| 4346bfd9a0 | |||
| ef2b025489 | |||
| 12101dc1ae | |||
| 1325471c45 | |||
| 59f88c22f9 | |||
| 8f131d5a6d | |||
| 81e09a71c2 | |||
| 41fa164611 | |||
| 9fa31a96c6 | |||
| eb95d6bda1 | |||
| 69844fa93f | |||
| 203e11f2f8 | |||
| 10d660c6dc | |||
| fcad02768b | |||
| 5cb51850c9 | |||
| a35c6e97b7 | |||
| 17fc9fb38e | |||
| dc5102d30b | |||
| 4d551319dd | |||
| 1acfd1b895 | |||
| 2458bb5721 | |||
| 5d8b2b0c26 | |||
| d5256e2fc1 | |||
| 55fd03942f | |||
| ead63b9e6d | |||
| 284a9deac7 | |||
| 3faac68c5b | |||
| 9bb4083a6e | |||
| 02299f7ec1 | |||
| a8c19984d6 | |||
| 0b739ea23c | |||
| 5c51bf7128 | |||
| 51ef62b4f1 | |||
| 5030efd2d0 | |||
| dd9707e42e |
@ -22,7 +22,7 @@ services:
|
|||||||
- elasticsearch-oss
|
- elasticsearch-oss
|
||||||
|
|
||||||
elasticsearch-oss:
|
elasticsearch-oss:
|
||||||
image: docker.elastic.co/elasticsearch/elasticsearch:${ELASTICSEARCH_VERSION:-7.0.0-beta1}
|
image: docker.elastic.co/elasticsearch/elasticsearch-oss:${ELASTICSEARCH_VERSION:-6.6.2}
|
||||||
volumes:
|
volumes:
|
||||||
- esvol:/tmp
|
- esvol:/tmp
|
||||||
networks:
|
networks:
|
||||||
@ -58,7 +58,7 @@ services:
|
|||||||
command: ["npm", "run", "test:integration"]
|
command: ["npm", "run", "test:integration"]
|
||||||
|
|
||||||
elasticsearch-platinum:
|
elasticsearch-platinum:
|
||||||
image: docker.elastic.co/elasticsearch/elasticsearch:${ELASTICSEARCH_VERSION:-7.0.0-beta1}
|
image: docker.elastic.co/elasticsearch/elasticsearch:${ELASTICSEARCH_VERSION:-6.6.2}
|
||||||
ports:
|
ports:
|
||||||
- "9200:9200"
|
- "9200:9200"
|
||||||
networks:
|
networks:
|
||||||
|
|||||||
7
.ci/docker/Dockerfile
Normal file
7
.ci/docker/Dockerfile
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
ARG NODE_JS_VERSION=10
|
||||||
|
FROM node:${NODE_JS_VERSION}-alpine
|
||||||
|
|
||||||
|
RUN apk --no-cache add git
|
||||||
|
|
||||||
|
# Create app directory
|
||||||
|
WORKDIR /usr/src/app
|
||||||
@ -47,6 +47,10 @@
|
|||||||
type: yaml
|
type: yaml
|
||||||
filename: .ci/test-matrix.yml
|
filename: .ci/test-matrix.yml
|
||||||
name: NODE_JS_VERSION
|
name: NODE_JS_VERSION
|
||||||
|
- axis:
|
||||||
|
type: yaml
|
||||||
|
filename: .ci/test-matrix.yml
|
||||||
|
name: TEST_SUITE
|
||||||
yaml-strategy:
|
yaml-strategy:
|
||||||
exclude-key: exclude
|
exclude-key: exclude
|
||||||
filename: .ci/test-matrix.yml
|
filename: .ci/test-matrix.yml
|
||||||
@ -65,3 +69,6 @@
|
|||||||
publishers:
|
publishers:
|
||||||
- email:
|
- email:
|
||||||
recipients: infra-root+build@elastic.co
|
recipients: infra-root+build@elastic.co
|
||||||
|
# - junit:
|
||||||
|
# results: "*-junit.xml"
|
||||||
|
# allow-empty-results: true
|
||||||
|
|||||||
14
.ci/packer_cache.sh
Normal file
14
.ci/packer_cache.sh
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
source /usr/local/bin/bash_standard_lib.sh
|
||||||
|
|
||||||
|
DOCKER_IMAGES="node:12-alpine
|
||||||
|
node:10-alpine
|
||||||
|
node:8-alpine
|
||||||
|
"
|
||||||
|
|
||||||
|
for di in ${DOCKER_IMAGES}
|
||||||
|
do
|
||||||
|
(retry 2 docker pull "${di}") || echo "Error pulling ${di} Docker image, we continue"
|
||||||
|
done
|
||||||
|
|
||||||
175
.ci/run-elasticsearch.sh
Normal file
175
.ci/run-elasticsearch.sh
Normal file
@ -0,0 +1,175 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
#
|
||||||
|
# Launch one or more Elasticsearch nodes via the Docker image,
|
||||||
|
# to form a cluster suitable for running the REST API tests.
|
||||||
|
#
|
||||||
|
# Export the ELASTICSEARCH_VERSION variable, eg. 'elasticsearch:8.0.0-SNAPSHOT'.
|
||||||
|
|
||||||
|
if [[ -z "$ELASTICSEARCH_VERSION" ]]; then
|
||||||
|
echo -e "\033[31;1mERROR:\033[0m Required environment variable [ELASTICSEARCH_VERSION] not set\033[0m"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
set -euxo pipefail
|
||||||
|
|
||||||
|
moniker=$(echo "$ELASTICSEARCH_VERSION" | tr -C "[:alnum:]" '-')
|
||||||
|
suffix=rest-test
|
||||||
|
|
||||||
|
NODE_NAME=${NODE_NAME-${moniker}node1}
|
||||||
|
MASTER_NODE_NAME=${MASTER_NODE_NAME-${NODE_NAME}}
|
||||||
|
CLUSTER_NAME=${CLUSTER_NAME-${moniker}${suffix}}
|
||||||
|
HTTP_PORT=${HTTP_PORT-9200}
|
||||||
|
|
||||||
|
ELASTIC_PASSWORD=${ELASTIC_PASSWORD-changeme}
|
||||||
|
SSL_CERT=${SSL_CERT-"$PWD/certs/testnode.crt"}
|
||||||
|
SSL_KEY=${SSL_KEY-"$PWD/certs/testnode.key"}
|
||||||
|
SSL_CA=${SSL_CA-"$PWD/certs/ca.crt"}
|
||||||
|
|
||||||
|
DETACH=${DETACH-false}
|
||||||
|
CLEANUP=${CLEANUP-false}
|
||||||
|
|
||||||
|
volume_name=${NODE_NAME}-${suffix}-data
|
||||||
|
network_default=${moniker}${suffix}
|
||||||
|
NETWORK_NAME=${NETWORK_NAME-"$network_default"}
|
||||||
|
|
||||||
|
set +x
|
||||||
|
|
||||||
|
function cleanup_volume {
|
||||||
|
if [[ "$(docker volume ls -q -f name=$1)" ]]; then
|
||||||
|
echo -e "\033[34;1mINFO:\033[0m Removing volume $1\033[0m"
|
||||||
|
(docker volume rm "$1") || true
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
function cleanup_node {
|
||||||
|
if [[ "$(docker ps -q -f name=$1)" ]]; then
|
||||||
|
echo -e "\033[34;1mINFO:\033[0m Removing container $1\033[0m"
|
||||||
|
(docker container rm --force --volumes "$1") || true
|
||||||
|
cleanup_volume "$1-${suffix}-data"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
function cleanup_network {
|
||||||
|
if [[ "$(docker network ls -q -f name=$1)" ]]; then
|
||||||
|
echo -e "\033[34;1mINFO:\033[0m Removing network $1\033[0m"
|
||||||
|
(docker network rm "$1") || true
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
function cleanup {
|
||||||
|
if [[ "$DETACH" != "true" ]] || [[ "$1" == "1" ]]; then
|
||||||
|
echo -e "\033[34;1mINFO:\033[0m clean the node and volume on startup (1) OR on exit if not detached\033[0m"
|
||||||
|
cleanup_node "$NODE_NAME"
|
||||||
|
fi
|
||||||
|
if [[ "$DETACH" != "true" ]]; then
|
||||||
|
echo -e "\033[34;1mINFO:\033[0m clean the network if not detached (start and exit)\033[0m"
|
||||||
|
cleanup_network "$NETWORK_NAME"
|
||||||
|
fi
|
||||||
|
};
|
||||||
|
trap "cleanup 0" EXIT
|
||||||
|
|
||||||
|
if [[ "$CLEANUP" == "true" ]]; then
|
||||||
|
trap - EXIT
|
||||||
|
if [[ -z "$(docker network ls -q -f name=${NETWORK_NAME})" ]]; then
|
||||||
|
echo -e "\033[34;1mINFO:\033[0m $NETWORK_NAME is already deleted\033[0m"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
containers=$(docker network inspect -f '{{ range $key, $value := .Containers }}{{ printf "%s\n" .Name}}{{ end }}' ${NETWORK_NAME})
|
||||||
|
while read -r container; do
|
||||||
|
cleanup_node "$container"
|
||||||
|
done <<< "$containers"
|
||||||
|
cleanup_network "$NETWORK_NAME"
|
||||||
|
echo -e "\033[32;1mSUCCESS:\033[0m Cleaned up and exiting\033[0m"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo -e "\033[34;1mINFO:\033[0m Making sure previous run leftover infrastructure is removed \033[0m"
|
||||||
|
cleanup 1
|
||||||
|
|
||||||
|
echo -e "\033[34;1mINFO:\033[0m Creating network $NETWORK_NAME if it does not exist already \033[0m"
|
||||||
|
docker network inspect "$NETWORK_NAME" > /dev/null 2>&1 || docker network create "$NETWORK_NAME"
|
||||||
|
|
||||||
|
environment=($(cat <<-END
|
||||||
|
--env node.name=$NODE_NAME
|
||||||
|
--env cluster.name=$CLUSTER_NAME
|
||||||
|
--env cluster.routing.allocation.disk.threshold_enabled=false
|
||||||
|
--env bootstrap.memory_lock=true
|
||||||
|
--env node.attr.testattr=test
|
||||||
|
--env path.repo=/tmp
|
||||||
|
--env repositories.url.allowed_urls=http://snapshot.test*
|
||||||
|
END
|
||||||
|
))
|
||||||
|
|
||||||
|
volumes=($(cat <<-END
|
||||||
|
--volume $volume_name:/usr/share/elasticsearch/data
|
||||||
|
END
|
||||||
|
))
|
||||||
|
|
||||||
|
if [[ "$ELASTICSEARCH_VERSION" != *oss* ]]; then
|
||||||
|
environment+=($(cat <<-END
|
||||||
|
--env ELASTIC_PASSWORD=$ELASTIC_PASSWORD
|
||||||
|
--env xpack.license.self_generated.type=trial
|
||||||
|
--env xpack.security.enabled=true
|
||||||
|
--env xpack.security.http.ssl.enabled=true
|
||||||
|
--env xpack.security.http.ssl.verification_mode=certificate
|
||||||
|
--env xpack.security.http.ssl.key=certs/testnode.key
|
||||||
|
--env xpack.security.http.ssl.certificate=certs/testnode.crt
|
||||||
|
--env xpack.security.http.ssl.certificate_authorities=certs/ca.crt
|
||||||
|
--env xpack.security.transport.ssl.enabled=true
|
||||||
|
--env xpack.security.transport.ssl.key=certs/testnode.key
|
||||||
|
--env xpack.security.transport.ssl.certificate=certs/testnode.crt
|
||||||
|
--env xpack.security.transport.ssl.certificate_authorities=certs/ca.crt
|
||||||
|
END
|
||||||
|
))
|
||||||
|
volumes+=($(cat <<-END
|
||||||
|
--volume $SSL_CERT:/usr/share/elasticsearch/config/certs/testnode.crt
|
||||||
|
--volume $SSL_KEY:/usr/share/elasticsearch/config/certs/testnode.key
|
||||||
|
--volume $SSL_CA:/usr/share/elasticsearch/config/certs/ca.crt
|
||||||
|
END
|
||||||
|
))
|
||||||
|
fi
|
||||||
|
|
||||||
|
url="http://$NODE_NAME"
|
||||||
|
if [[ "$ELASTICSEARCH_VERSION" != *oss* ]]; then
|
||||||
|
url="https://elastic:$ELASTIC_PASSWORD@$NODE_NAME"
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo -e "\033[34;1mINFO:\033[0m Starting container $NODE_NAME \033[0m"
|
||||||
|
set -x
|
||||||
|
docker run \
|
||||||
|
--name "$NODE_NAME" \
|
||||||
|
--network "$NETWORK_NAME" \
|
||||||
|
--env ES_JAVA_OPTS=-"Xms1g -Xmx1g" \
|
||||||
|
"${environment[@]}" \
|
||||||
|
"${volumes[@]}" \
|
||||||
|
--publish "$HTTP_PORT":9200 \
|
||||||
|
--ulimit nofile=65536:65536 \
|
||||||
|
--ulimit memlock=-1:-1 \
|
||||||
|
--detach="$DETACH" \
|
||||||
|
--health-cmd="curl --silent --insecure --fail $url:9200/_cluster/health || exit 1" \
|
||||||
|
--health-interval=2s \
|
||||||
|
--health-retries=20 \
|
||||||
|
--health-timeout=2s \
|
||||||
|
--rm \
|
||||||
|
docker.elastic.co/elasticsearch/"$ELASTICSEARCH_VERSION";
|
||||||
|
set +x
|
||||||
|
|
||||||
|
if [[ "$DETACH" == "true" ]]; then
|
||||||
|
until [[ "$(docker inspect -f "{{.State.Health.Status}}" ${NODE_NAME})" != "starting" ]]; do
|
||||||
|
sleep 2;
|
||||||
|
echo ""
|
||||||
|
echo -e "\033[34;1mINFO:\033[0m waiting for node $NODE_NAME to be up\033[0m"
|
||||||
|
done;
|
||||||
|
# Always show the node getting started logs, this is very useful both on CI as well as while developing
|
||||||
|
docker logs "$NODE_NAME"
|
||||||
|
if [[ "$(docker inspect -f "{{.State.Health.Status}}" ${NODE_NAME})" != "healthy" ]]; then
|
||||||
|
cleanup 1
|
||||||
|
echo
|
||||||
|
echo -e "\033[31;1mERROR:\033[0m Failed to start ${ELASTICSEARCH_VERSION} in detached mode beyond health checks\033[0m"
|
||||||
|
echo -e "\033[31;1mERROR:\033[0m dumped the docker log before shutting the node down\033[0m"
|
||||||
|
exit 1
|
||||||
|
else
|
||||||
|
echo
|
||||||
|
echo -e "\033[32;1mSUCCESS:\033[0m Detached and healthy: ${NODE_NAME} on docker network: ${NETWORK_NAME}\033[0m"
|
||||||
|
echo -e "\033[32;1mSUCCESS:\033[0m Running on: ${url/$NODE_NAME/localhost}:${HTTP_PORT}\033[0m"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
fi
|
||||||
@ -8,6 +8,7 @@
|
|||||||
#
|
#
|
||||||
# - $ELASTICSEARCH_VERSION
|
# - $ELASTICSEARCH_VERSION
|
||||||
# - $NODE_JS_VERSION
|
# - $NODE_JS_VERSION
|
||||||
|
# - $TEST_SUITE
|
||||||
#
|
#
|
||||||
|
|
||||||
set -eo pipefail
|
set -eo pipefail
|
||||||
@ -18,93 +19,41 @@ export CODECOV_TOKEN=$(vault read -field=token secret/clients-ci/elasticsearch-j
|
|||||||
unset VAULT_ROLE_ID VAULT_SECRET_ID VAULT_TOKEN
|
unset VAULT_ROLE_ID VAULT_SECRET_ID VAULT_TOKEN
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
function cleanup {
|
|
||||||
docker container rm --force --volumes elasticsearch-oss > /dev/null 2>&1 || true
|
|
||||||
docker container rm --force --volumes elasticsearch-platinum > /dev/null 2>&1 || true
|
|
||||||
docker container rm --force --volumes elasticsearch-js-oss > /dev/null 2>&1 || true
|
|
||||||
docker container rm --force --volumes elasticsearch-js-platinum > /dev/null 2>&1 || true
|
|
||||||
docker network rm esnet-oss > /dev/null
|
|
||||||
docker network rm esnet-platinum > /dev/null
|
|
||||||
}
|
|
||||||
|
|
||||||
trap cleanup EXIT
|
|
||||||
|
|
||||||
# create network and volume
|
|
||||||
docker network create esnet-oss
|
|
||||||
docker network create esnet-platinum
|
|
||||||
|
|
||||||
# create client image
|
|
||||||
docker build \
|
docker build \
|
||||||
--file .ci/Dockerfile \
|
--file .ci/Dockerfile \
|
||||||
--tag elastic/elasticsearch-js \
|
--tag elastic/elasticsearch-js \
|
||||||
--build-arg NODE_JS_VERSION=${NODE_JS_VERSION} \
|
--build-arg NODE_JS_VERSION=${NODE_JS_VERSION} \
|
||||||
.
|
.
|
||||||
|
|
||||||
# run elasticsearch oss
|
NODE_NAME="es1"
|
||||||
docker run \
|
|
||||||
--rm \
|
|
||||||
--env "node.attr.testattr=test" \
|
|
||||||
--env "path.repo=/tmp" \
|
|
||||||
--env "repositories.url.allowed_urls=http://snapshot.*" \
|
|
||||||
--env "discovery.type=single-node" \
|
|
||||||
--network=esnet-oss \
|
|
||||||
--name=elasticsearch-oss \
|
|
||||||
--detach \
|
|
||||||
docker.elastic.co/elasticsearch/elasticsearch-oss:${ELASTICSEARCH_VERSION}
|
|
||||||
|
|
||||||
# run elasticsearch platinum
|
|
||||||
repo=$(pwd)
|
repo=$(pwd)
|
||||||
testnodecrt="/.ci/certs/testnode.crt"
|
testnodecrt="/.ci/certs/testnode.crt"
|
||||||
testnodekey="/.ci/certs/testnode.key"
|
testnodekey="/.ci/certs/testnode.key"
|
||||||
cacrt="/.ci/certs/ca.crt"
|
cacrt="/.ci/certs/ca.crt"
|
||||||
|
|
||||||
docker run \
|
elasticsearch_image="elasticsearch"
|
||||||
--rm \
|
elasticsearch_url="https://elastic:changeme@${NODE_NAME}:9200"
|
||||||
--env "node.attr.testattr=test" \
|
if [[ $TEST_SUITE != "xpack" ]]; then
|
||||||
--env "path.repo=/tmp" \
|
elasticsearch_image="elasticsearch-oss"
|
||||||
--env "repositories.url.allowed_urls=http://snapshot.*" \
|
elasticsearch_url="http://${NODE_NAME}:9200"
|
||||||
--env "discovery.type=single-node" \
|
fi
|
||||||
--env "ES_JAVA_OPTS=-Xms1g -Xmx1g" \
|
|
||||||
--env "ELASTIC_PASSWORD=changeme" \
|
ELASTICSEARCH_VERSION="${elasticsearch_image}:${ELASTICSEARCH_VERSION}" \
|
||||||
--env "xpack.security.enabled=true" \
|
NODE_NAME="${NODE_NAME}" \
|
||||||
--env "xpack.license.self_generated.type=trial" \
|
NETWORK_NAME="esnet" \
|
||||||
--env "xpack.security.http.ssl.enabled=true" \
|
DETACH=true \
|
||||||
--env "xpack.security.http.ssl.verification_mode=certificate" \
|
SSL_CERT="${repo}${testnodecrt}" \
|
||||||
--env "xpack.security.http.ssl.key=certs/testnode.key" \
|
SSL_KEY="${repo}${testnodekey}" \
|
||||||
--env "xpack.security.http.ssl.certificate=certs/testnode.crt" \
|
SSL_CA="${repo}${cacrt}" \
|
||||||
--env "xpack.security.http.ssl.certificate_authorities=certs/ca.crt" \
|
bash .ci/run-elasticsearch.sh
|
||||||
--env "xpack.security.transport.ssl.enabled=true" \
|
|
||||||
--env "xpack.security.transport.ssl.key=certs/testnode.key" \
|
|
||||||
--env "xpack.security.transport.ssl.certificate=certs/testnode.crt" \
|
|
||||||
--env "xpack.security.transport.ssl.certificate_authorities=certs/ca.crt" \
|
|
||||||
--volume "$repo$testnodecrt:/usr/share/elasticsearch/config/certs/testnode.crt" \
|
|
||||||
--volume "$repo$testnodekey:/usr/share/elasticsearch/config/certs/testnode.key" \
|
|
||||||
--volume "$repo$cacrt:/usr/share/elasticsearch/config/certs/ca.crt" \
|
|
||||||
--network=esnet-platinum \
|
|
||||||
--name=elasticsearch-platinum \
|
|
||||||
--detach \
|
|
||||||
docker.elastic.co/elasticsearch/elasticsearch:${ELASTICSEARCH_VERSION}
|
|
||||||
|
|
||||||
# run the client unit and oss integration test
|
|
||||||
docker run \
|
docker run \
|
||||||
--network=esnet-oss \
|
--network=esnet \
|
||||||
--env "TEST_ES_SERVER=http://elasticsearch-oss:9200" \
|
--env "TEST_ES_SERVER=${elasticsearch_url}" \
|
||||||
--env "CODECOV_TOKEN" \
|
--env "CODECOV_TOKEN" \
|
||||||
--volume $repo:/usr/src/app \
|
--volume $repo:/usr/src/app \
|
||||||
--volume /usr/src/app/node_modules \
|
--volume /usr/src/app/node_modules \
|
||||||
--name elasticsearch-js-oss \
|
--name elasticsearch-js \
|
||||||
--rm \
|
--rm \
|
||||||
elastic/elasticsearch-js \
|
elastic/elasticsearch-js \
|
||||||
npm run ci
|
npm run ci
|
||||||
|
|
||||||
# run the client platinium integration test
|
|
||||||
docker run \
|
|
||||||
--network=esnet-platinum \
|
|
||||||
--env "TEST_ES_SERVER=https://elastic:changeme@elasticsearch-platinum:9200" \
|
|
||||||
--volume $repo:/usr/src/app \
|
|
||||||
--volume /usr/src/app/node_modules \
|
|
||||||
--name elasticsearch-js-platinum \
|
|
||||||
--rm \
|
|
||||||
elastic/elasticsearch-js \
|
|
||||||
npm run test:integration
|
|
||||||
|
|
||||||
|
|||||||
@ -1,10 +1,14 @@
|
|||||||
---
|
---
|
||||||
ELASTICSEARCH_VERSION:
|
ELASTICSEARCH_VERSION:
|
||||||
- 7.0.0
|
- 6.8.4
|
||||||
|
|
||||||
NODE_JS_VERSION:
|
NODE_JS_VERSION:
|
||||||
- 12
|
- 12
|
||||||
- 10
|
- 10
|
||||||
- 8
|
- 8
|
||||||
|
|
||||||
|
TEST_SUITE:
|
||||||
|
- oss
|
||||||
|
- xpack
|
||||||
|
|
||||||
exclude: ~
|
exclude: ~
|
||||||
|
|||||||
6
.gitignore
vendored
6
.gitignore
vendored
@ -50,8 +50,6 @@ package-lock.json
|
|||||||
# elasticsearch repo or binary files
|
# elasticsearch repo or binary files
|
||||||
elasticsearch*
|
elasticsearch*
|
||||||
|
|
||||||
# Generated typings, we don't commit them
|
|
||||||
# because we should copy them in the main .d.ts file
|
|
||||||
api/generated.d.ts
|
|
||||||
|
|
||||||
test/benchmarks/macro/fixtures/*
|
test/benchmarks/macro/fixtures/*
|
||||||
|
|
||||||
|
*-junit.xml
|
||||||
|
|||||||
16
.travis.yml
16
.travis.yml
@ -1,7 +1,3 @@
|
|||||||
dist: trusty
|
|
||||||
|
|
||||||
sudo: required
|
|
||||||
|
|
||||||
language: node_js
|
language: node_js
|
||||||
|
|
||||||
node_js:
|
node_js:
|
||||||
@ -9,11 +5,21 @@ node_js:
|
|||||||
- "10"
|
- "10"
|
||||||
- "8"
|
- "8"
|
||||||
|
|
||||||
|
cache:
|
||||||
|
npm: false
|
||||||
|
|
||||||
|
os:
|
||||||
|
- windows
|
||||||
|
- linux
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- npm install
|
- npm install
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- npm run license-checker && npm run test
|
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then npm run license-checker; fi
|
||||||
|
- npm run lint
|
||||||
|
- npm run test:coverage
|
||||||
|
- npm run test:types
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
email:
|
email:
|
||||||
|
|||||||
258
README.md
258
README.md
@ -1,23 +1,24 @@
|
|||||||
<img align="right" width="auto" height="auto" src="https://www.elastic.co/static-res/images/elastic-logo-200.png">
|
<img align="right" width="auto" height="auto" src="https://www.elastic.co/static-res/images/elastic-logo-200.png">
|
||||||
|
|
||||||
# @elastic/elasticsearch
|
# Elasticsearch Node.js client
|
||||||
|
|
||||||
[](http://standardjs.com/) [](https://clients-ci.elastic.co/job/elastic+elasticsearch-js+master/) [](https://codecov.io/gh/elastic/elasticsearch-js) [](https://www.npmjs.com/package/@elastic/elasticsearch)
|
[](http://standardjs.com/) [](https://clients-ci.elastic.co/view/Javascript/job/elastic+elasticsearch-js+master/) [](https://codecov.io/gh/elastic/elasticsearch-js) [](https://www.npmjs.com/package/@elastic/elasticsearch)
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
**Note:** In the past months we have worked on the new Elasticsearch Node.js client, and if you want you can already try it by following the instructions below, while if you're going to use the legacy one or report an issue, please check out [elastic/elasticsearch-js-legacy](https://github.com/elastic/elasticsearch-js-legacy).
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
The official Node.js client for Elasticsearch.
|
The official Node.js client for Elasticsearch.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
**Note:** In the past months we have worked on the new Elasticsearch Node.js client and you can use it by following the instructions below. If you're going to use the legacy one or report an issue, however, please check out [elastic/elasticsearch-js-legacy](https://github.com/elastic/elasticsearch-js-legacy).
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
- One-to-one mapping with REST API.
|
- One-to-one mapping with REST API.
|
||||||
- Generalized, pluggable architecture.
|
- Generalized, pluggable architecture.
|
||||||
- Configurable, automatic discovery of cluster nodes.
|
- Configurable, automatic discovery of cluster nodes.
|
||||||
- Persistent, Keep-Alive connections.
|
- Persistent, Keep-Alive connections.
|
||||||
- Load balancing (with pluggable selection strategy) across all available nodes.
|
- Load balancing across all available nodes.
|
||||||
|
- Child client support.
|
||||||
- TypeScript support out of the box.
|
- TypeScript support out of the box.
|
||||||
|
|
||||||
## Install
|
## Install
|
||||||
@ -29,62 +30,49 @@ npm install @elastic/elasticsearch
|
|||||||
|
|
||||||
The minimum supported version of Node.js is `v8`.
|
The minimum supported version of Node.js is `v8`.
|
||||||
|
|
||||||
The library is compatible with all Elasticsearch versions since 5.x, but you should use the same major version of the Elasticsearch instance that you are using.
|
The library is compatible with all Elasticsearch versions since 5.x, and you should use the same major version of the Elasticsearch instance that you are using.
|
||||||
|
|
||||||
|
| Elasticsearch Version | Client Version |
|
||||||
|
| --------------------- |----------------|
|
||||||
|
| `master` | `master` |
|
||||||
|
| `7.x` | `7.x` |
|
||||||
|
| `6.x` | `6.x` |
|
||||||
|
| `5.x` | `5.x` |
|
||||||
|
|
||||||
|
To install a specific major of the client, run the following command:
|
||||||
```
|
```
|
||||||
# Elasticsearch 7.x
|
npm install @elastic/elasticsearch@<major>
|
||||||
@elastic/elasticsearch@7
|
|
||||||
|
|
||||||
# Elasticsearch 6.x
|
|
||||||
@elastic/elasticsearch@6
|
|
||||||
|
|
||||||
# Elasticsearch 5.x
|
|
||||||
@elastic/elasticsearch@5
|
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Install multiple versions
|
#### Browser
|
||||||
If you are using multiple versions of Elasticsearch, you need to use multiple versions of the client. In the past, install multiple versions of the same package was not possible, but with `npm v6.9`, you can do that via aliasing.
|
|
||||||
|
|
||||||
The command you must run to install different version of the client is:
|
WARNING: There is no official support for the browser environment. It exposes your Elasticsearch instance to everyone, which could lead to security issues.
|
||||||
```sh
|
We recommend that you write a lightweight proxy that uses this client instead.
|
||||||
npm install <alias>@npm:@elastic/elasticsearch@<version>
|
|
||||||
```
|
|
||||||
So for example if you need to install `7.x` and `6.x`, you will run
|
|
||||||
```sh
|
|
||||||
npm install es6@npm:@elastic/elasticsearch@6
|
|
||||||
npm install es7@npm:@elastic/elasticsearch@7
|
|
||||||
```
|
|
||||||
And your `package.json` will look like the following:
|
|
||||||
```json
|
|
||||||
"dependencies": {
|
|
||||||
"es6": "npm:@elastic/elasticsearch@^6.7.0",
|
|
||||||
"es7": "npm:@elastic/elasticsearch@^7.0.0"
|
|
||||||
}
|
|
||||||
```
|
|
||||||
And finally, you will require the packages from your code by using the alias you have defined.
|
|
||||||
```js
|
|
||||||
const { Client: Client6 } = require('es6')
|
|
||||||
const { Client: Client7 } = require('es7')
|
|
||||||
|
|
||||||
const client6 = new Client6({ node: 'http://localhost:9200' })
|
## Documentation
|
||||||
const client7 = new Client7({ node: 'http://localhost:9201' })
|
|
||||||
|
|
||||||
client6.info(console.log)
|
- [Introduction](https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/introduction.html)
|
||||||
client7.info(console.log)
|
- [Usage](https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/client-usage.html)
|
||||||
```
|
- [Client configuration](https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/client-configuration.html)
|
||||||
|
- [API reference](https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/api-reference.html)
|
||||||
|
- [Breaking changes coming from the old client](https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/breaking-changes.html)
|
||||||
|
- [Authentication](https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/auth-reference.html)
|
||||||
|
- [Observability](https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/observability.html)
|
||||||
|
- [Creating a child client](https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/child-client.html)
|
||||||
|
- [Extend the client](https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/extend-client.html)
|
||||||
|
- [Typescript support](https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/typescript.html)
|
||||||
|
- [Examples](https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/examples.html)
|
||||||
|
|
||||||
Finally, if you want to install the client for the next version of Elasticsearch *(the one that lives in Elasticsearch’s master branch)*, you can use the following command:
|
## Quick start
|
||||||
```sh
|
|
||||||
npm install esmaster@github:elastic/elasticsearch-js
|
|
||||||
```
|
|
||||||
|
|
||||||
## Usage
|
|
||||||
|
|
||||||
You can find the full documentation in our [docs](https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/index.html) website.
|
|
||||||
|
|
||||||
|
First of all, require the client and initialize it:
|
||||||
```js
|
```js
|
||||||
const { Client } = require('@elastic/elasticsearch')
|
const { Client } = require('@elastic/elasticsearch')
|
||||||
const client = new Client({ node: 'http://localhost:9200' })
|
const client = new Client({ node: 'http://localhost:9200' })
|
||||||
|
```
|
||||||
|
|
||||||
|
You can use both the callback-style API and the promise-style API, both behave the same way.
|
||||||
|
```js
|
||||||
// promise API
|
// promise API
|
||||||
const result = await client.search({
|
const result = await client.search({
|
||||||
index: 'my-index',
|
index: 'my-index',
|
||||||
@ -109,84 +97,98 @@ The returned value of **every** API call is formed as follows:
|
|||||||
meta: object
|
meta: object
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
### Client options
|
|
||||||
|
|
||||||
The client is designed to be easily configured as you see fit for your needs, following you can see all the possible options that you can use to configure it.
|
Let's see a complete example!
|
||||||
|
|
||||||
```ts
|
|
||||||
{
|
|
||||||
// the Elasticsearch endpoint to use
|
|
||||||
node: string | string[];
|
|
||||||
// alias of above
|
|
||||||
nodes: string | string[];
|
|
||||||
// custom connection class
|
|
||||||
Connection: typeof Connection;
|
|
||||||
// custom connection pool class
|
|
||||||
ConnectionPool: typeof ConnectionPool;
|
|
||||||
// custom transport class
|
|
||||||
Transport: typeof Transport;
|
|
||||||
// custom serializer class
|
|
||||||
Serializer: typeof Serializer;
|
|
||||||
// max number of retries for each request
|
|
||||||
maxRetries: number;
|
|
||||||
// max request timeout for each request
|
|
||||||
requestTimeout: number;
|
|
||||||
// max ping timeout for each request
|
|
||||||
pingTimeout: number;
|
|
||||||
// perform a sniff operation every `n` milliseconds
|
|
||||||
sniffInterval: number;
|
|
||||||
// perform a sniff once the client is started
|
|
||||||
sniffOnStart: boolean;
|
|
||||||
// custom sniff endpoint, defaults `_nodes/_all/http`
|
|
||||||
sniffEndpoint: string;
|
|
||||||
// perform a sniff on connection fault
|
|
||||||
sniffOnConnectionFault: boolean;
|
|
||||||
// configurethe node resurrection strategy, default `ping`
|
|
||||||
resurrectStrategy: 'ping' | 'optimistic' | 'none';
|
|
||||||
// adds `accept-encoding` header to every request
|
|
||||||
suggestCompression: boolean;
|
|
||||||
// enable gzip request body compression
|
|
||||||
compression: 'gzip';
|
|
||||||
// ssl configuraton
|
|
||||||
ssl: http.SecureContextOptions;
|
|
||||||
// http agent options
|
|
||||||
agent: http.AgentOptions;
|
|
||||||
// filters which node not to use for a request
|
|
||||||
nodeFilter: nodeFilterFn;
|
|
||||||
// custom selection strategy, defaults `round-robin`
|
|
||||||
nodeSelector: nodeSelectorFn | string;
|
|
||||||
// function to generate the request id for every request
|
|
||||||
generateRequestId: generateRequestIdFn;
|
|
||||||
// name to identify the client instance in the events
|
|
||||||
name: string;
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
### Request specific options
|
|
||||||
If needed you can pass request specific options in a second object:
|
|
||||||
```js
|
```js
|
||||||
// promise API
|
'use strict'
|
||||||
const result = await client.search({
|
|
||||||
index: 'my-index',
|
const { Client } = require('@elastic/elasticsearch')
|
||||||
body: { foo: 'bar' }
|
const client = new Client({ node: 'http://localhost:9200' })
|
||||||
}, {
|
|
||||||
ignore: [404],
|
async function run () {
|
||||||
maxRetries: 3
|
// Let's start by indexing some data
|
||||||
})
|
await client.index({
|
||||||
```
|
index: 'game-of-thrones',
|
||||||
The supported *request specific options* are:
|
// type: '_doc', // uncomment this line if you are using Elasticsearch ≤ 6
|
||||||
```ts
|
body: {
|
||||||
{
|
character: 'Ned Stark',
|
||||||
ignore: [number], // default `null`
|
quote: 'Winter is coming.'
|
||||||
requestTimeout: number, // client default
|
}
|
||||||
maxRetries: number, // default `5`
|
})
|
||||||
asStream: boolean, // default `false`
|
|
||||||
compression: string, // default `false`
|
await client.index({
|
||||||
headers: object, // default `null`
|
index: 'game-of-thrones',
|
||||||
querystring: object // default `null`,
|
// type: '_doc', // uncomment this line if you are using Elasticsearch ≤ 6
|
||||||
context: object // default `null`,
|
body: {
|
||||||
id: any // default incr. integer
|
character: 'Daenerys Targaryen',
|
||||||
|
quote: 'I am the blood of the dragon.'
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
await client.index({
|
||||||
|
index: 'game-of-thrones',
|
||||||
|
// type: '_doc', // uncomment this line if you are using Elasticsearch ≤ 6
|
||||||
|
body: {
|
||||||
|
character: 'Tyrion Lannister',
|
||||||
|
quote: 'A mind needs books like a sword needs a whetstone.'
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
// here we are forcing an index refresh, otherwise we will not
|
||||||
|
// get any result in the consequent search
|
||||||
|
await client.indices.refresh({ index: 'game-of-thrones' })
|
||||||
|
|
||||||
|
// Let's search!
|
||||||
|
const { body } = await client.search({
|
||||||
|
index: 'game-of-thrones',
|
||||||
|
// type: '_doc', // uncomment this line if you are using Elasticsearch ≤ 6
|
||||||
|
body: {
|
||||||
|
query: {
|
||||||
|
match: { quote: 'winter' }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
console.log(body.hits.hits)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
run().catch(console.log)
|
||||||
|
```
|
||||||
|
|
||||||
|
## Install multiple versions
|
||||||
|
If you are using multiple versions of Elasticsearch, you need to use multiple versions of the client. In the past, install multiple versions of the same package was not possible, but with `npm v6.9`, you can do that via aliasing.
|
||||||
|
|
||||||
|
The command you must run to install different version of the client is:
|
||||||
|
```sh
|
||||||
|
npm install <alias>@npm:@elastic/elasticsearch@<version>
|
||||||
|
```
|
||||||
|
So for example if you need to install `7.x` and `6.x`, you will run
|
||||||
|
```sh
|
||||||
|
npm install es6@npm:@elastic/elasticsearch@6
|
||||||
|
npm install es7@npm:@elastic/elasticsearch@7
|
||||||
|
```
|
||||||
|
And your `package.json` will look like the following:
|
||||||
|
```json
|
||||||
|
"dependencies": {
|
||||||
|
"es6": "npm:@elastic/elasticsearch@^6.7.0",
|
||||||
|
"es7": "npm:@elastic/elasticsearch@^7.0.0"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
You will require the packages from your code by using the alias you have defined.
|
||||||
|
```js
|
||||||
|
const { Client: Client6 } = require('es6')
|
||||||
|
const { Client: Client7 } = require('es7')
|
||||||
|
|
||||||
|
const client6 = new Client6({ node: 'http://localhost:9200' })
|
||||||
|
const client7 = new Client7({ node: 'http://localhost:9201' })
|
||||||
|
|
||||||
|
client6.info(console.log)
|
||||||
|
client7.info(console.log)
|
||||||
|
```
|
||||||
|
|
||||||
|
Finally, if you want to install the client for the next version of Elasticsearch *(the one that lives in Elasticsearch’s master branch)*, you can use the following command:
|
||||||
|
```sh
|
||||||
|
npm install esmaster@github:elastic/elasticsearch-js
|
||||||
```
|
```
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|||||||
@ -1,21 +1,6 @@
|
|||||||
/*
|
// Licensed to Elasticsearch B.V under one or more agreements.
|
||||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
||||||
* license agreements. See the NOTICE file distributed with
|
// See the LICENSE file in the project root for more information
|
||||||
* this work for additional information regarding copyright
|
|
||||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
||||||
* the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
* not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
@ -35,6 +20,7 @@ function buildBulk (opts) {
|
|||||||
* @param {string} routing - Specific routing value
|
* @param {string} routing - Specific routing value
|
||||||
* @param {time} timeout - Explicit operation timeout
|
* @param {time} timeout - Explicit operation timeout
|
||||||
* @param {string} type - Default document type for items which don't provide one
|
* @param {string} type - Default document type for items which don't provide one
|
||||||
|
* @param {list} fields - Default comma-separated list of fields to return in the response for updates, can be overridden on each sub-request
|
||||||
* @param {list} _source - True or false to return the _source field or not, or default list of fields to return, can be overridden on each sub-request
|
* @param {list} _source - True or false to return the _source field or not, or default list of fields to return, can be overridden on each sub-request
|
||||||
* @param {list} _source_excludes - Default list of fields to exclude from the returned _source field, can be overridden on each sub-request
|
* @param {list} _source_excludes - Default list of fields to exclude from the returned _source field, can be overridden on each sub-request
|
||||||
* @param {list} _source_includes - Default list of fields to extract and return from the _source field, can be overridden on each sub-request
|
* @param {list} _source_includes - Default list of fields to extract and return from the _source field, can be overridden on each sub-request
|
||||||
@ -48,9 +34,12 @@ function buildBulk (opts) {
|
|||||||
'routing',
|
'routing',
|
||||||
'timeout',
|
'timeout',
|
||||||
'type',
|
'type',
|
||||||
|
'fields',
|
||||||
'_source',
|
'_source',
|
||||||
'_source_excludes',
|
'_source_excludes',
|
||||||
|
'_source_exclude',
|
||||||
'_source_includes',
|
'_source_includes',
|
||||||
|
'_source_include',
|
||||||
'pipeline',
|
'pipeline',
|
||||||
'pretty',
|
'pretty',
|
||||||
'human',
|
'human',
|
||||||
@ -62,7 +51,9 @@ function buildBulk (opts) {
|
|||||||
const snakeCase = {
|
const snakeCase = {
|
||||||
waitForActiveShards: 'wait_for_active_shards',
|
waitForActiveShards: 'wait_for_active_shards',
|
||||||
_sourceExcludes: '_source_excludes',
|
_sourceExcludes: '_source_excludes',
|
||||||
|
_sourceExclude: '_source_exclude',
|
||||||
_sourceIncludes: '_source_includes',
|
_sourceIncludes: '_source_includes',
|
||||||
|
_sourceInclude: '_source_include',
|
||||||
errorTrace: 'error_trace',
|
errorTrace: 'error_trace',
|
||||||
filterPath: 'filter_path'
|
filterPath: 'filter_path'
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,21 +1,6 @@
|
|||||||
/*
|
// Licensed to Elasticsearch B.V under one or more agreements.
|
||||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
||||||
* license agreements. See the NOTICE file distributed with
|
// See the LICENSE file in the project root for more information
|
||||||
* this work for additional information regarding copyright
|
|
||||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
||||||
* the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
* not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
|
|||||||
@ -1,21 +1,6 @@
|
|||||||
/*
|
// Licensed to Elasticsearch B.V under one or more agreements.
|
||||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
||||||
* license agreements. See the NOTICE file distributed with
|
// See the LICENSE file in the project root for more information
|
||||||
* this work for additional information regarding copyright
|
|
||||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
||||||
* the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
* not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
|
|||||||
@ -1,21 +1,6 @@
|
|||||||
/*
|
// Licensed to Elasticsearch B.V under one or more agreements.
|
||||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
||||||
* license agreements. See the NOTICE file distributed with
|
// See the LICENSE file in the project root for more information
|
||||||
* this work for additional information regarding copyright
|
|
||||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
||||||
* the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
* not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
|
|||||||
@ -1,21 +1,6 @@
|
|||||||
/*
|
// Licensed to Elasticsearch B.V under one or more agreements.
|
||||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
||||||
* license agreements. See the NOTICE file distributed with
|
// See the LICENSE file in the project root for more information
|
||||||
* this work for additional information regarding copyright
|
|
||||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
||||||
* the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
* not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
|
|||||||
@ -1,21 +1,6 @@
|
|||||||
/*
|
// Licensed to Elasticsearch B.V under one or more agreements.
|
||||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
||||||
* license agreements. See the NOTICE file distributed with
|
// See the LICENSE file in the project root for more information
|
||||||
* this work for additional information regarding copyright
|
|
||||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
||||||
* the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
* not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
|
|||||||
@ -1,21 +1,6 @@
|
|||||||
/*
|
// Licensed to Elasticsearch B.V under one or more agreements.
|
||||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
||||||
* license agreements. See the NOTICE file distributed with
|
// See the LICENSE file in the project root for more information
|
||||||
* this work for additional information regarding copyright
|
|
||||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
||||||
* the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
* not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
|
|||||||
@ -1,21 +1,6 @@
|
|||||||
/*
|
// Licensed to Elasticsearch B.V under one or more agreements.
|
||||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
||||||
* license agreements. See the NOTICE file distributed with
|
// See the LICENSE file in the project root for more information
|
||||||
* this work for additional information regarding copyright
|
|
||||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
||||||
* the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
* not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
|
|||||||
@ -1,21 +1,6 @@
|
|||||||
/*
|
// Licensed to Elasticsearch B.V under one or more agreements.
|
||||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
||||||
* license agreements. See the NOTICE file distributed with
|
// See the LICENSE file in the project root for more information
|
||||||
* this work for additional information regarding copyright
|
|
||||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
||||||
* the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
* not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
|
|||||||
@ -1,21 +1,6 @@
|
|||||||
/*
|
// Licensed to Elasticsearch B.V under one or more agreements.
|
||||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
||||||
* license agreements. See the NOTICE file distributed with
|
// See the LICENSE file in the project root for more information
|
||||||
* this work for additional information regarding copyright
|
|
||||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
||||||
* the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
* not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
|
|||||||
@ -1,21 +1,6 @@
|
|||||||
/*
|
// Licensed to Elasticsearch B.V under one or more agreements.
|
||||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
||||||
* license agreements. See the NOTICE file distributed with
|
// See the LICENSE file in the project root for more information
|
||||||
* this work for additional information regarding copyright
|
|
||||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
||||||
* the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
* not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
|
|||||||
@ -1,21 +1,6 @@
|
|||||||
/*
|
// Licensed to Elasticsearch B.V under one or more agreements.
|
||||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
||||||
* license agreements. See the NOTICE file distributed with
|
// See the LICENSE file in the project root for more information
|
||||||
* this work for additional information regarding copyright
|
|
||||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
||||||
* the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
* not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
|
|||||||
@ -1,21 +1,6 @@
|
|||||||
/*
|
// Licensed to Elasticsearch B.V under one or more agreements.
|
||||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
||||||
* license agreements. See the NOTICE file distributed with
|
// See the LICENSE file in the project root for more information
|
||||||
* this work for additional information regarding copyright
|
|
||||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
||||||
* the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
* not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
|
|||||||
@ -1,21 +1,6 @@
|
|||||||
/*
|
// Licensed to Elasticsearch B.V under one or more agreements.
|
||||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
||||||
* license agreements. See the NOTICE file distributed with
|
// See the LICENSE file in the project root for more information
|
||||||
* this work for additional information regarding copyright
|
|
||||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
||||||
* the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
* not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
|
|||||||
@ -1,21 +1,6 @@
|
|||||||
/*
|
// Licensed to Elasticsearch B.V under one or more agreements.
|
||||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
||||||
* license agreements. See the NOTICE file distributed with
|
// See the LICENSE file in the project root for more information
|
||||||
* this work for additional information regarding copyright
|
|
||||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
||||||
* the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
* not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
|
|||||||
@ -1,21 +1,6 @@
|
|||||||
/*
|
// Licensed to Elasticsearch B.V under one or more agreements.
|
||||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
||||||
* license agreements. See the NOTICE file distributed with
|
// See the LICENSE file in the project root for more information
|
||||||
* this work for additional information regarding copyright
|
|
||||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
||||||
* the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
* not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
|
|||||||
@ -1,21 +1,6 @@
|
|||||||
/*
|
// Licensed to Elasticsearch B.V under one or more agreements.
|
||||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
||||||
* license agreements. See the NOTICE file distributed with
|
// See the LICENSE file in the project root for more information
|
||||||
* this work for additional information regarding copyright
|
|
||||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
||||||
* the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
* not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
|
|||||||
@ -1,21 +1,6 @@
|
|||||||
/*
|
// Licensed to Elasticsearch B.V under one or more agreements.
|
||||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
||||||
* license agreements. See the NOTICE file distributed with
|
// See the LICENSE file in the project root for more information
|
||||||
* this work for additional information regarding copyright
|
|
||||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
||||||
* the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
* not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
|
|||||||
@ -1,21 +1,6 @@
|
|||||||
/*
|
// Licensed to Elasticsearch B.V under one or more agreements.
|
||||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
||||||
* license agreements. See the NOTICE file distributed with
|
// See the LICENSE file in the project root for more information
|
||||||
* this work for additional information regarding copyright
|
|
||||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
||||||
* the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
* not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
|
|||||||
@ -1,21 +1,6 @@
|
|||||||
/*
|
// Licensed to Elasticsearch B.V under one or more agreements.
|
||||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
||||||
* license agreements. See the NOTICE file distributed with
|
// See the LICENSE file in the project root for more information
|
||||||
* this work for additional information regarding copyright
|
|
||||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
||||||
* the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
* not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
|
|||||||
@ -1,21 +1,6 @@
|
|||||||
/*
|
// Licensed to Elasticsearch B.V under one or more agreements.
|
||||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
||||||
* license agreements. See the NOTICE file distributed with
|
// See the LICENSE file in the project root for more information
|
||||||
* this work for additional information regarding copyright
|
|
||||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
||||||
* the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
* not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
|
|||||||
@ -1,21 +1,6 @@
|
|||||||
/*
|
// Licensed to Elasticsearch B.V under one or more agreements.
|
||||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
||||||
* license agreements. See the NOTICE file distributed with
|
// See the LICENSE file in the project root for more information
|
||||||
* this work for additional information regarding copyright
|
|
||||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
||||||
* the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
* not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
|
|||||||
@ -1,21 +1,6 @@
|
|||||||
/*
|
// Licensed to Elasticsearch B.V under one or more agreements.
|
||||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
||||||
* license agreements. See the NOTICE file distributed with
|
// See the LICENSE file in the project root for more information
|
||||||
* this work for additional information regarding copyright
|
|
||||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
||||||
* the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
* not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
|
|||||||
@ -1,21 +1,6 @@
|
|||||||
/*
|
// Licensed to Elasticsearch B.V under one or more agreements.
|
||||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
||||||
* license agreements. See the NOTICE file distributed with
|
// See the LICENSE file in the project root for more information
|
||||||
* this work for additional information regarding copyright
|
|
||||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
||||||
* the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
* not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
|
|||||||
@ -1,21 +1,6 @@
|
|||||||
/*
|
// Licensed to Elasticsearch B.V under one or more agreements.
|
||||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
||||||
* license agreements. See the NOTICE file distributed with
|
// See the LICENSE file in the project root for more information
|
||||||
* this work for additional information regarding copyright
|
|
||||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
||||||
* the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
* not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
@ -51,12 +36,6 @@ function buildCcrFollowStats (opts) {
|
|||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
|
|
||||||
// check required parameters
|
|
||||||
if (params['index'] == null) {
|
|
||||||
const err = new ConfigurationError('Missing required parameter: index')
|
|
||||||
return handleError(err, callback)
|
|
||||||
}
|
|
||||||
|
|
||||||
// validate headers object
|
// validate headers object
|
||||||
if (options.headers != null && typeof options.headers !== 'object') {
|
if (options.headers != null && typeof options.headers !== 'object') {
|
||||||
const err = new ConfigurationError(`Headers should be an object, instead got: ${typeof options.headers}`)
|
const err = new ConfigurationError(`Headers should be an object, instead got: ${typeof options.headers}`)
|
||||||
|
|||||||
@ -1,21 +1,6 @@
|
|||||||
/*
|
// Licensed to Elasticsearch B.V under one or more agreements.
|
||||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
||||||
* license agreements. See the NOTICE file distributed with
|
// See the LICENSE file in the project root for more information
|
||||||
* this work for additional information regarding copyright
|
|
||||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
||||||
* the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
* not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
|
|||||||
@ -1,21 +1,6 @@
|
|||||||
/*
|
// Licensed to Elasticsearch B.V under one or more agreements.
|
||||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
||||||
* license agreements. See the NOTICE file distributed with
|
// See the LICENSE file in the project root for more information
|
||||||
* this work for additional information regarding copyright
|
|
||||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
||||||
* the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
* not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
|
|||||||
@ -1,21 +1,6 @@
|
|||||||
/*
|
// Licensed to Elasticsearch B.V under one or more agreements.
|
||||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
||||||
* license agreements. See the NOTICE file distributed with
|
// See the LICENSE file in the project root for more information
|
||||||
* this work for additional information regarding copyright
|
|
||||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
||||||
* the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
* not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
|
|||||||
@ -1,21 +1,6 @@
|
|||||||
/*
|
// Licensed to Elasticsearch B.V under one or more agreements.
|
||||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
||||||
* license agreements. See the NOTICE file distributed with
|
// See the LICENSE file in the project root for more information
|
||||||
* this work for additional information regarding copyright
|
|
||||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
||||||
* the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
* not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
|
|||||||
@ -1,21 +1,6 @@
|
|||||||
/*
|
// Licensed to Elasticsearch B.V under one or more agreements.
|
||||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
||||||
* license agreements. See the NOTICE file distributed with
|
// See the LICENSE file in the project root for more information
|
||||||
* this work for additional information regarding copyright
|
|
||||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
||||||
* the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
* not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
|
|||||||
@ -1,21 +1,6 @@
|
|||||||
/*
|
// Licensed to Elasticsearch B.V under one or more agreements.
|
||||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
||||||
* license agreements. See the NOTICE file distributed with
|
// See the LICENSE file in the project root for more information
|
||||||
* this work for additional information regarding copyright
|
|
||||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
||||||
* the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
* not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
|
|||||||
@ -1,21 +1,6 @@
|
|||||||
/*
|
// Licensed to Elasticsearch B.V under one or more agreements.
|
||||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
||||||
* license agreements. See the NOTICE file distributed with
|
// See the LICENSE file in the project root for more information
|
||||||
* this work for additional information regarding copyright
|
|
||||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
||||||
* the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
* not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
|
|||||||
@ -1,21 +1,6 @@
|
|||||||
/*
|
// Licensed to Elasticsearch B.V under one or more agreements.
|
||||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
||||||
* license agreements. See the NOTICE file distributed with
|
// See the LICENSE file in the project root for more information
|
||||||
* this work for additional information regarding copyright
|
|
||||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
||||||
* the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
* not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
|
|||||||
@ -1,21 +1,6 @@
|
|||||||
/*
|
// Licensed to Elasticsearch B.V under one or more agreements.
|
||||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
||||||
* license agreements. See the NOTICE file distributed with
|
// See the LICENSE file in the project root for more information
|
||||||
* this work for additional information regarding copyright
|
|
||||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
||||||
* the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
* not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
|
|||||||
@ -1,21 +1,6 @@
|
|||||||
/*
|
// Licensed to Elasticsearch B.V under one or more agreements.
|
||||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
||||||
* license agreements. See the NOTICE file distributed with
|
// See the LICENSE file in the project root for more information
|
||||||
* this work for additional information regarding copyright
|
|
||||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
||||||
* the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
* not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
|
|||||||
@ -1,21 +1,6 @@
|
|||||||
/*
|
// Licensed to Elasticsearch B.V under one or more agreements.
|
||||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
||||||
* license agreements. See the NOTICE file distributed with
|
// See the LICENSE file in the project root for more information
|
||||||
* this work for additional information regarding copyright
|
|
||||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
||||||
* the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
* not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
|
|||||||
@ -1,21 +1,6 @@
|
|||||||
/*
|
// Licensed to Elasticsearch B.V under one or more agreements.
|
||||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
||||||
* license agreements. See the NOTICE file distributed with
|
// See the LICENSE file in the project root for more information
|
||||||
* this work for additional information regarding copyright
|
|
||||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
||||||
* the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
* not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
|
|||||||
@ -1,21 +1,6 @@
|
|||||||
/*
|
// Licensed to Elasticsearch B.V under one or more agreements.
|
||||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
||||||
* license agreements. See the NOTICE file distributed with
|
// See the LICENSE file in the project root for more information
|
||||||
* this work for additional information regarding copyright
|
|
||||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
||||||
* the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
* not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
|
|||||||
@ -1,21 +1,6 @@
|
|||||||
/*
|
// Licensed to Elasticsearch B.V under one or more agreements.
|
||||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
||||||
* license agreements. See the NOTICE file distributed with
|
// See the LICENSE file in the project root for more information
|
||||||
* this work for additional information regarding copyright
|
|
||||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
||||||
* the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
* not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
|
|||||||
@ -1,21 +1,6 @@
|
|||||||
/*
|
// Licensed to Elasticsearch B.V under one or more agreements.
|
||||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
||||||
* license agreements. See the NOTICE file distributed with
|
// See the LICENSE file in the project root for more information
|
||||||
* this work for additional information regarding copyright
|
|
||||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
||||||
* the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
* not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
|
|||||||
@ -1,21 +1,6 @@
|
|||||||
/*
|
// Licensed to Elasticsearch B.V under one or more agreements.
|
||||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
||||||
* license agreements. See the NOTICE file distributed with
|
// See the LICENSE file in the project root for more information
|
||||||
* this work for additional information regarding copyright
|
|
||||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
||||||
* the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
* not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
|
|||||||
@ -1,21 +1,6 @@
|
|||||||
/*
|
// Licensed to Elasticsearch B.V under one or more agreements.
|
||||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
||||||
* license agreements. See the NOTICE file distributed with
|
// See the LICENSE file in the project root for more information
|
||||||
* this work for additional information regarding copyright
|
|
||||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
||||||
* the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
* not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
|
|||||||
@ -1,21 +1,6 @@
|
|||||||
/*
|
// Licensed to Elasticsearch B.V under one or more agreements.
|
||||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
||||||
* license agreements. See the NOTICE file distributed with
|
// See the LICENSE file in the project root for more information
|
||||||
* this work for additional information regarding copyright
|
|
||||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
||||||
* the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
* not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
|
|||||||
@ -1,21 +1,6 @@
|
|||||||
/*
|
// Licensed to Elasticsearch B.V under one or more agreements.
|
||||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
||||||
* license agreements. See the NOTICE file distributed with
|
// See the LICENSE file in the project root for more information
|
||||||
* this work for additional information regarding copyright
|
|
||||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
||||||
* the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
* not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
@ -86,6 +71,10 @@ function buildCreate (opts) {
|
|||||||
const err = new ConfigurationError('Missing required parameter: index')
|
const err = new ConfigurationError('Missing required parameter: index')
|
||||||
return handleError(err, callback)
|
return handleError(err, callback)
|
||||||
}
|
}
|
||||||
|
if (params['type'] == null) {
|
||||||
|
const err = new ConfigurationError('Missing required parameter: type')
|
||||||
|
return handleError(err, callback)
|
||||||
|
}
|
||||||
if (params['body'] == null) {
|
if (params['body'] == null) {
|
||||||
const err = new ConfigurationError('Missing required parameter: body')
|
const err = new ConfigurationError('Missing required parameter: body')
|
||||||
return handleError(err, callback)
|
return handleError(err, callback)
|
||||||
@ -112,11 +101,7 @@ function buildCreate (opts) {
|
|||||||
|
|
||||||
var path = ''
|
var path = ''
|
||||||
|
|
||||||
if ((index) != null && (type) != null && (id) != null) {
|
path = '/' + encodeURIComponent(index) + '/' + encodeURIComponent(type) + '/' + encodeURIComponent(id) + '/' + '_create'
|
||||||
path = '/' + encodeURIComponent(index) + '/' + encodeURIComponent(type) + '/' + encodeURIComponent(id) + '/' + '_create'
|
|
||||||
} else {
|
|
||||||
path = '/' + encodeURIComponent(index) + '/' + '_create' + '/' + encodeURIComponent(id)
|
|
||||||
}
|
|
||||||
|
|
||||||
// build request object
|
// build request object
|
||||||
const request = {
|
const request = {
|
||||||
|
|||||||
@ -1,21 +1,6 @@
|
|||||||
/*
|
// Licensed to Elasticsearch B.V under one or more agreements.
|
||||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
||||||
* license agreements. See the NOTICE file distributed with
|
// See the LICENSE file in the project root for more information
|
||||||
* this work for additional information regarding copyright
|
|
||||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
||||||
* the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
* not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
@ -89,11 +74,24 @@ function buildDelete (opts) {
|
|||||||
const err = new ConfigurationError('Missing required parameter: index')
|
const err = new ConfigurationError('Missing required parameter: index')
|
||||||
return handleError(err, callback)
|
return handleError(err, callback)
|
||||||
}
|
}
|
||||||
|
if (params['type'] == null) {
|
||||||
|
const err = new ConfigurationError('Missing required parameter: type')
|
||||||
|
return handleError(err, callback)
|
||||||
|
}
|
||||||
if (params.body != null) {
|
if (params.body != null) {
|
||||||
const err = new ConfigurationError('This API does not require a body')
|
const err = new ConfigurationError('This API does not require a body')
|
||||||
return handleError(err, callback)
|
return handleError(err, callback)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// check required url components
|
||||||
|
if (params['id'] != null && (params['type'] == null || params['index'] == null)) {
|
||||||
|
const err = new ConfigurationError('Missing required parameter of the url: type, index')
|
||||||
|
return handleError(err, callback)
|
||||||
|
} else if (params['type'] != null && (params['index'] == null)) {
|
||||||
|
const err = new ConfigurationError('Missing required parameter of the url: index')
|
||||||
|
return handleError(err, callback)
|
||||||
|
}
|
||||||
|
|
||||||
// validate headers object
|
// validate headers object
|
||||||
if (options.headers != null && typeof options.headers !== 'object') {
|
if (options.headers != null && typeof options.headers !== 'object') {
|
||||||
const err = new ConfigurationError(`Headers should be an object, instead got: ${typeof options.headers}`)
|
const err = new ConfigurationError(`Headers should be an object, instead got: ${typeof options.headers}`)
|
||||||
@ -115,11 +113,7 @@ function buildDelete (opts) {
|
|||||||
|
|
||||||
var path = ''
|
var path = ''
|
||||||
|
|
||||||
if ((index) != null && (type) != null && (id) != null) {
|
path = '/' + encodeURIComponent(index) + '/' + encodeURIComponent(type) + '/' + encodeURIComponent(id)
|
||||||
path = '/' + encodeURIComponent(index) + '/' + encodeURIComponent(type) + '/' + encodeURIComponent(id)
|
|
||||||
} else {
|
|
||||||
path = '/' + encodeURIComponent(index) + '/' + '_doc' + '/' + encodeURIComponent(id)
|
|
||||||
}
|
|
||||||
|
|
||||||
// build request object
|
// build request object
|
||||||
const request = {
|
const request = {
|
||||||
|
|||||||
@ -1,21 +1,6 @@
|
|||||||
/*
|
// Licensed to Elasticsearch B.V under one or more agreements.
|
||||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
||||||
* license agreements. See the NOTICE file distributed with
|
// See the LICENSE file in the project root for more information
|
||||||
* this work for additional information regarding copyright
|
|
||||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
||||||
* the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
* not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
@ -86,7 +71,9 @@ function buildDeleteByQuery (opts) {
|
|||||||
'sort',
|
'sort',
|
||||||
'_source',
|
'_source',
|
||||||
'_source_excludes',
|
'_source_excludes',
|
||||||
|
'_source_exclude',
|
||||||
'_source_includes',
|
'_source_includes',
|
||||||
|
'_source_include',
|
||||||
'terminate_after',
|
'terminate_after',
|
||||||
'stats',
|
'stats',
|
||||||
'version',
|
'version',
|
||||||
@ -114,7 +101,9 @@ function buildDeleteByQuery (opts) {
|
|||||||
searchType: 'search_type',
|
searchType: 'search_type',
|
||||||
searchTimeout: 'search_timeout',
|
searchTimeout: 'search_timeout',
|
||||||
_sourceExcludes: '_source_excludes',
|
_sourceExcludes: '_source_excludes',
|
||||||
|
_sourceExclude: '_source_exclude',
|
||||||
_sourceIncludes: '_source_includes',
|
_sourceIncludes: '_source_includes',
|
||||||
|
_sourceInclude: '_source_include',
|
||||||
terminateAfter: 'terminate_after',
|
terminateAfter: 'terminate_after',
|
||||||
requestCache: 'request_cache',
|
requestCache: 'request_cache',
|
||||||
waitForActiveShards: 'wait_for_active_shards',
|
waitForActiveShards: 'wait_for_active_shards',
|
||||||
|
|||||||
@ -1,21 +1,6 @@
|
|||||||
/*
|
// Licensed to Elasticsearch B.V under one or more agreements.
|
||||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
||||||
* license agreements. See the NOTICE file distributed with
|
// See the LICENSE file in the project root for more information
|
||||||
* this work for additional information regarding copyright
|
|
||||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
||||||
* the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
* not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
|
|||||||
@ -1,21 +1,6 @@
|
|||||||
/*
|
// Licensed to Elasticsearch B.V under one or more agreements.
|
||||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
||||||
* license agreements. See the NOTICE file distributed with
|
// See the LICENSE file in the project root for more information
|
||||||
* this work for additional information regarding copyright
|
|
||||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
||||||
* the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
* not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
|
|||||||
@ -1,21 +1,6 @@
|
|||||||
/*
|
// Licensed to Elasticsearch B.V under one or more agreements.
|
||||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
||||||
* license agreements. See the NOTICE file distributed with
|
// See the LICENSE file in the project root for more information
|
||||||
* this work for additional information regarding copyright
|
|
||||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
||||||
* the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
* not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
@ -53,7 +38,9 @@ function buildExists (opts) {
|
|||||||
'routing',
|
'routing',
|
||||||
'_source',
|
'_source',
|
||||||
'_source_excludes',
|
'_source_excludes',
|
||||||
|
'_source_exclude',
|
||||||
'_source_includes',
|
'_source_includes',
|
||||||
|
'_source_include',
|
||||||
'version',
|
'version',
|
||||||
'version_type',
|
'version_type',
|
||||||
'pretty',
|
'pretty',
|
||||||
@ -66,7 +53,9 @@ function buildExists (opts) {
|
|||||||
const snakeCase = {
|
const snakeCase = {
|
||||||
storedFields: 'stored_fields',
|
storedFields: 'stored_fields',
|
||||||
_sourceExcludes: '_source_excludes',
|
_sourceExcludes: '_source_excludes',
|
||||||
|
_sourceExclude: '_source_exclude',
|
||||||
_sourceIncludes: '_source_includes',
|
_sourceIncludes: '_source_includes',
|
||||||
|
_sourceInclude: '_source_include',
|
||||||
versionType: 'version_type',
|
versionType: 'version_type',
|
||||||
errorTrace: 'error_trace',
|
errorTrace: 'error_trace',
|
||||||
filterPath: 'filter_path'
|
filterPath: 'filter_path'
|
||||||
@ -93,6 +82,10 @@ function buildExists (opts) {
|
|||||||
const err = new ConfigurationError('Missing required parameter: index')
|
const err = new ConfigurationError('Missing required parameter: index')
|
||||||
return handleError(err, callback)
|
return handleError(err, callback)
|
||||||
}
|
}
|
||||||
|
if (params['type'] == null) {
|
||||||
|
const err = new ConfigurationError('Missing required parameter: type')
|
||||||
|
return handleError(err, callback)
|
||||||
|
}
|
||||||
if (params.body != null) {
|
if (params.body != null) {
|
||||||
const err = new ConfigurationError('This API does not require a body')
|
const err = new ConfigurationError('This API does not require a body')
|
||||||
return handleError(err, callback)
|
return handleError(err, callback)
|
||||||
@ -119,11 +112,7 @@ function buildExists (opts) {
|
|||||||
|
|
||||||
var path = ''
|
var path = ''
|
||||||
|
|
||||||
if ((index) != null && (type) != null && (id) != null) {
|
path = '/' + encodeURIComponent(index) + '/' + encodeURIComponent(type) + '/' + encodeURIComponent(id)
|
||||||
path = '/' + encodeURIComponent(index) + '/' + encodeURIComponent(type) + '/' + encodeURIComponent(id)
|
|
||||||
} else {
|
|
||||||
path = '/' + encodeURIComponent(index) + '/' + '_doc' + '/' + encodeURIComponent(id)
|
|
||||||
}
|
|
||||||
|
|
||||||
// build request object
|
// build request object
|
||||||
const request = {
|
const request = {
|
||||||
|
|||||||
@ -1,21 +1,6 @@
|
|||||||
/*
|
// Licensed to Elasticsearch B.V under one or more agreements.
|
||||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
||||||
* license agreements. See the NOTICE file distributed with
|
// See the LICENSE file in the project root for more information
|
||||||
* this work for additional information regarding copyright
|
|
||||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
||||||
* the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
* not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
@ -30,7 +15,7 @@ function buildExistsSource (opts) {
|
|||||||
*
|
*
|
||||||
* @param {string} id - The document ID
|
* @param {string} id - The document ID
|
||||||
* @param {string} index - The name of the index
|
* @param {string} index - The name of the index
|
||||||
* @param {string} type - The type of the document; deprecated and optional starting with 7.0
|
* @param {string} type - The type of the document; use `_all` to fetch the first document matching the ID across all types
|
||||||
* @param {string} parent - The ID of the parent document
|
* @param {string} parent - The ID of the parent document
|
||||||
* @param {string} preference - Specify the node or shard the operation should be performed on (default: random)
|
* @param {string} preference - Specify the node or shard the operation should be performed on (default: random)
|
||||||
* @param {boolean} realtime - Specify whether to perform the operation in realtime or search mode
|
* @param {boolean} realtime - Specify whether to perform the operation in realtime or search mode
|
||||||
@ -51,7 +36,9 @@ function buildExistsSource (opts) {
|
|||||||
'routing',
|
'routing',
|
||||||
'_source',
|
'_source',
|
||||||
'_source_excludes',
|
'_source_excludes',
|
||||||
|
'_source_exclude',
|
||||||
'_source_includes',
|
'_source_includes',
|
||||||
|
'_source_include',
|
||||||
'version',
|
'version',
|
||||||
'version_type',
|
'version_type',
|
||||||
'pretty',
|
'pretty',
|
||||||
@ -63,7 +50,9 @@ function buildExistsSource (opts) {
|
|||||||
|
|
||||||
const snakeCase = {
|
const snakeCase = {
|
||||||
_sourceExcludes: '_source_excludes',
|
_sourceExcludes: '_source_excludes',
|
||||||
|
_sourceExclude: '_source_exclude',
|
||||||
_sourceIncludes: '_source_includes',
|
_sourceIncludes: '_source_includes',
|
||||||
|
_sourceInclude: '_source_include',
|
||||||
versionType: 'version_type',
|
versionType: 'version_type',
|
||||||
errorTrace: 'error_trace',
|
errorTrace: 'error_trace',
|
||||||
filterPath: 'filter_path'
|
filterPath: 'filter_path'
|
||||||
@ -90,6 +79,10 @@ function buildExistsSource (opts) {
|
|||||||
const err = new ConfigurationError('Missing required parameter: index')
|
const err = new ConfigurationError('Missing required parameter: index')
|
||||||
return handleError(err, callback)
|
return handleError(err, callback)
|
||||||
}
|
}
|
||||||
|
if (params['type'] == null) {
|
||||||
|
const err = new ConfigurationError('Missing required parameter: type')
|
||||||
|
return handleError(err, callback)
|
||||||
|
}
|
||||||
if (params.body != null) {
|
if (params.body != null) {
|
||||||
const err = new ConfigurationError('This API does not require a body')
|
const err = new ConfigurationError('This API does not require a body')
|
||||||
return handleError(err, callback)
|
return handleError(err, callback)
|
||||||
@ -125,11 +118,7 @@ function buildExistsSource (opts) {
|
|||||||
|
|
||||||
var path = ''
|
var path = ''
|
||||||
|
|
||||||
if ((index) != null && (type) != null && (id) != null) {
|
path = '/' + encodeURIComponent(index) + '/' + encodeURIComponent(type) + '/' + encodeURIComponent(id) + '/' + '_source'
|
||||||
path = '/' + encodeURIComponent(index) + '/' + encodeURIComponent(type) + '/' + encodeURIComponent(id) + '/' + '_source'
|
|
||||||
} else {
|
|
||||||
path = '/' + encodeURIComponent(index) + '/' + '_source' + '/' + encodeURIComponent(id)
|
|
||||||
}
|
|
||||||
|
|
||||||
// build request object
|
// build request object
|
||||||
const request = {
|
const request = {
|
||||||
|
|||||||
@ -1,21 +1,6 @@
|
|||||||
/*
|
// Licensed to Elasticsearch B.V under one or more agreements.
|
||||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
||||||
* license agreements. See the NOTICE file distributed with
|
// See the LICENSE file in the project root for more information
|
||||||
* this work for additional information regarding copyright
|
|
||||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
||||||
* the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
* not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
@ -60,7 +45,9 @@ function buildExplain (opts) {
|
|||||||
'routing',
|
'routing',
|
||||||
'_source',
|
'_source',
|
||||||
'_source_excludes',
|
'_source_excludes',
|
||||||
|
'_source_exclude',
|
||||||
'_source_includes',
|
'_source_includes',
|
||||||
|
'_source_include',
|
||||||
'pretty',
|
'pretty',
|
||||||
'human',
|
'human',
|
||||||
'error_trace',
|
'error_trace',
|
||||||
@ -73,7 +60,9 @@ function buildExplain (opts) {
|
|||||||
defaultOperator: 'default_operator',
|
defaultOperator: 'default_operator',
|
||||||
storedFields: 'stored_fields',
|
storedFields: 'stored_fields',
|
||||||
_sourceExcludes: '_source_excludes',
|
_sourceExcludes: '_source_excludes',
|
||||||
|
_sourceExclude: '_source_exclude',
|
||||||
_sourceIncludes: '_source_includes',
|
_sourceIncludes: '_source_includes',
|
||||||
|
_sourceInclude: '_source_include',
|
||||||
errorTrace: 'error_trace',
|
errorTrace: 'error_trace',
|
||||||
filterPath: 'filter_path'
|
filterPath: 'filter_path'
|
||||||
}
|
}
|
||||||
@ -99,6 +88,10 @@ function buildExplain (opts) {
|
|||||||
const err = new ConfigurationError('Missing required parameter: index')
|
const err = new ConfigurationError('Missing required parameter: index')
|
||||||
return handleError(err, callback)
|
return handleError(err, callback)
|
||||||
}
|
}
|
||||||
|
if (params['type'] == null) {
|
||||||
|
const err = new ConfigurationError('Missing required parameter: type')
|
||||||
|
return handleError(err, callback)
|
||||||
|
}
|
||||||
|
|
||||||
// validate headers object
|
// validate headers object
|
||||||
if (options.headers != null && typeof options.headers !== 'object') {
|
if (options.headers != null && typeof options.headers !== 'object') {
|
||||||
@ -121,11 +114,7 @@ function buildExplain (opts) {
|
|||||||
|
|
||||||
var path = ''
|
var path = ''
|
||||||
|
|
||||||
if ((index) != null && (type) != null && (id) != null) {
|
path = '/' + encodeURIComponent(index) + '/' + encodeURIComponent(type) + '/' + encodeURIComponent(id) + '/' + '_explain'
|
||||||
path = '/' + encodeURIComponent(index) + '/' + encodeURIComponent(type) + '/' + encodeURIComponent(id) + '/' + '_explain'
|
|
||||||
} else {
|
|
||||||
path = '/' + encodeURIComponent(index) + '/' + '_explain' + '/' + encodeURIComponent(id)
|
|
||||||
}
|
|
||||||
|
|
||||||
// build request object
|
// build request object
|
||||||
const request = {
|
const request = {
|
||||||
|
|||||||
@ -1,21 +1,6 @@
|
|||||||
/*
|
// Licensed to Elasticsearch B.V under one or more agreements.
|
||||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
||||||
* license agreements. See the NOTICE file distributed with
|
// See the LICENSE file in the project root for more information
|
||||||
* this work for additional information regarding copyright
|
|
||||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
||||||
* the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
* not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
@ -33,6 +18,7 @@ function buildFieldCaps (opts) {
|
|||||||
* @param {boolean} ignore_unavailable - Whether specified concrete indices should be ignored when unavailable (missing or closed)
|
* @param {boolean} ignore_unavailable - Whether specified concrete indices should be ignored when unavailable (missing or closed)
|
||||||
* @param {boolean} allow_no_indices - Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
|
* @param {boolean} allow_no_indices - Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
|
||||||
* @param {enum} expand_wildcards - Whether to expand wildcard expression to concrete indices that are open, closed or both.
|
* @param {enum} expand_wildcards - Whether to expand wildcard expression to concrete indices that are open, closed or both.
|
||||||
|
* @param {object} body - Field json objects containing an array of field names
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const acceptedQuerystring = [
|
const acceptedQuerystring = [
|
||||||
@ -67,12 +53,6 @@ function buildFieldCaps (opts) {
|
|||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
|
|
||||||
// check required parameters
|
|
||||||
if (params.body != null) {
|
|
||||||
const err = new ConfigurationError('This API does not require a body')
|
|
||||||
return handleError(err, callback)
|
|
||||||
}
|
|
||||||
|
|
||||||
// validate headers object
|
// validate headers object
|
||||||
if (options.headers != null && typeof options.headers !== 'object') {
|
if (options.headers != null && typeof options.headers !== 'object') {
|
||||||
const err = new ConfigurationError(`Headers should be an object, instead got: ${typeof options.headers}`)
|
const err = new ConfigurationError(`Headers should be an object, instead got: ${typeof options.headers}`)
|
||||||
@ -104,7 +84,7 @@ function buildFieldCaps (opts) {
|
|||||||
const request = {
|
const request = {
|
||||||
method,
|
method,
|
||||||
path,
|
path,
|
||||||
body: '',
|
body: body || '',
|
||||||
querystring
|
querystring
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -1,21 +1,6 @@
|
|||||||
/*
|
// Licensed to Elasticsearch B.V under one or more agreements.
|
||||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
||||||
* license agreements. See the NOTICE file distributed with
|
// See the LICENSE file in the project root for more information
|
||||||
* this work for additional information regarding copyright
|
|
||||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
||||||
* the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
* not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
@ -55,8 +40,8 @@ function buildGet (opts) {
|
|||||||
'routing',
|
'routing',
|
||||||
'_source',
|
'_source',
|
||||||
'_source_excludes',
|
'_source_excludes',
|
||||||
'_source_includes',
|
|
||||||
'_source_exclude',
|
'_source_exclude',
|
||||||
|
'_source_includes',
|
||||||
'_source_include',
|
'_source_include',
|
||||||
'version',
|
'version',
|
||||||
'version_type',
|
'version_type',
|
||||||
@ -70,8 +55,8 @@ function buildGet (opts) {
|
|||||||
const snakeCase = {
|
const snakeCase = {
|
||||||
storedFields: 'stored_fields',
|
storedFields: 'stored_fields',
|
||||||
_sourceExcludes: '_source_excludes',
|
_sourceExcludes: '_source_excludes',
|
||||||
_sourceIncludes: '_source_includes',
|
|
||||||
_sourceExclude: '_source_exclude',
|
_sourceExclude: '_source_exclude',
|
||||||
|
_sourceIncludes: '_source_includes',
|
||||||
_sourceInclude: '_source_include',
|
_sourceInclude: '_source_include',
|
||||||
versionType: 'version_type',
|
versionType: 'version_type',
|
||||||
errorTrace: 'error_trace',
|
errorTrace: 'error_trace',
|
||||||
@ -99,6 +84,10 @@ function buildGet (opts) {
|
|||||||
const err = new ConfigurationError('Missing required parameter: index')
|
const err = new ConfigurationError('Missing required parameter: index')
|
||||||
return handleError(err, callback)
|
return handleError(err, callback)
|
||||||
}
|
}
|
||||||
|
if (params['type'] == null) {
|
||||||
|
const err = new ConfigurationError('Missing required parameter: type')
|
||||||
|
return handleError(err, callback)
|
||||||
|
}
|
||||||
if (params.body != null) {
|
if (params.body != null) {
|
||||||
const err = new ConfigurationError('This API does not require a body')
|
const err = new ConfigurationError('This API does not require a body')
|
||||||
return handleError(err, callback)
|
return handleError(err, callback)
|
||||||
@ -125,11 +114,7 @@ function buildGet (opts) {
|
|||||||
|
|
||||||
var path = ''
|
var path = ''
|
||||||
|
|
||||||
if ((index) != null && (type) != null && (id) != null) {
|
path = '/' + encodeURIComponent(index) + '/' + encodeURIComponent(type) + '/' + encodeURIComponent(id)
|
||||||
path = '/' + encodeURIComponent(index) + '/' + encodeURIComponent(type) + '/' + encodeURIComponent(id)
|
|
||||||
} else {
|
|
||||||
path = '/' + encodeURIComponent(index) + '/' + '_doc' + '/' + encodeURIComponent(id)
|
|
||||||
}
|
|
||||||
|
|
||||||
// build request object
|
// build request object
|
||||||
const request = {
|
const request = {
|
||||||
|
|||||||
@ -1,21 +1,6 @@
|
|||||||
/*
|
// Licensed to Elasticsearch B.V under one or more agreements.
|
||||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
||||||
* license agreements. See the NOTICE file distributed with
|
// See the LICENSE file in the project root for more information
|
||||||
* this work for additional information regarding copyright
|
|
||||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
||||||
* the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
* not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
|
|||||||
@ -1,21 +1,6 @@
|
|||||||
/*
|
// Licensed to Elasticsearch B.V under one or more agreements.
|
||||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
||||||
* license agreements. See the NOTICE file distributed with
|
// See the LICENSE file in the project root for more information
|
||||||
* this work for additional information regarding copyright
|
|
||||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
||||||
* the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
* not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
@ -30,7 +15,7 @@ function buildGetSource (opts) {
|
|||||||
*
|
*
|
||||||
* @param {string} id - The document ID
|
* @param {string} id - The document ID
|
||||||
* @param {string} index - The name of the index
|
* @param {string} index - The name of the index
|
||||||
* @param {string} type - The type of the document; deprecated and optional starting with 7.0
|
* @param {string} type - The type of the document; use `_all` to fetch the first document matching the ID across all types
|
||||||
* @param {string} parent - The ID of the parent document
|
* @param {string} parent - The ID of the parent document
|
||||||
* @param {string} preference - Specify the node or shard the operation should be performed on (default: random)
|
* @param {string} preference - Specify the node or shard the operation should be performed on (default: random)
|
||||||
* @param {boolean} realtime - Specify whether to perform the operation in realtime or search mode
|
* @param {boolean} realtime - Specify whether to perform the operation in realtime or search mode
|
||||||
@ -51,7 +36,9 @@ function buildGetSource (opts) {
|
|||||||
'routing',
|
'routing',
|
||||||
'_source',
|
'_source',
|
||||||
'_source_excludes',
|
'_source_excludes',
|
||||||
|
'_source_exclude',
|
||||||
'_source_includes',
|
'_source_includes',
|
||||||
|
'_source_include',
|
||||||
'version',
|
'version',
|
||||||
'version_type',
|
'version_type',
|
||||||
'pretty',
|
'pretty',
|
||||||
@ -63,7 +50,9 @@ function buildGetSource (opts) {
|
|||||||
|
|
||||||
const snakeCase = {
|
const snakeCase = {
|
||||||
_sourceExcludes: '_source_excludes',
|
_sourceExcludes: '_source_excludes',
|
||||||
|
_sourceExclude: '_source_exclude',
|
||||||
_sourceIncludes: '_source_includes',
|
_sourceIncludes: '_source_includes',
|
||||||
|
_sourceInclude: '_source_include',
|
||||||
versionType: 'version_type',
|
versionType: 'version_type',
|
||||||
errorTrace: 'error_trace',
|
errorTrace: 'error_trace',
|
||||||
filterPath: 'filter_path'
|
filterPath: 'filter_path'
|
||||||
@ -90,6 +79,10 @@ function buildGetSource (opts) {
|
|||||||
const err = new ConfigurationError('Missing required parameter: index')
|
const err = new ConfigurationError('Missing required parameter: index')
|
||||||
return handleError(err, callback)
|
return handleError(err, callback)
|
||||||
}
|
}
|
||||||
|
if (params['type'] == null) {
|
||||||
|
const err = new ConfigurationError('Missing required parameter: type')
|
||||||
|
return handleError(err, callback)
|
||||||
|
}
|
||||||
if (params.body != null) {
|
if (params.body != null) {
|
||||||
const err = new ConfigurationError('This API does not require a body')
|
const err = new ConfigurationError('This API does not require a body')
|
||||||
return handleError(err, callback)
|
return handleError(err, callback)
|
||||||
@ -116,11 +109,7 @@ function buildGetSource (opts) {
|
|||||||
|
|
||||||
var path = ''
|
var path = ''
|
||||||
|
|
||||||
if ((index) != null && (type) != null && (id) != null) {
|
path = '/' + encodeURIComponent(index) + '/' + encodeURIComponent(type) + '/' + encodeURIComponent(id) + '/' + '_source'
|
||||||
path = '/' + encodeURIComponent(index) + '/' + encodeURIComponent(type) + '/' + encodeURIComponent(id) + '/' + '_source'
|
|
||||||
} else {
|
|
||||||
path = '/' + encodeURIComponent(index) + '/' + '_source' + '/' + encodeURIComponent(id)
|
|
||||||
}
|
|
||||||
|
|
||||||
// build request object
|
// build request object
|
||||||
const request = {
|
const request = {
|
||||||
|
|||||||
@ -1,21 +1,6 @@
|
|||||||
/*
|
// Licensed to Elasticsearch B.V under one or more agreements.
|
||||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
||||||
* license agreements. See the NOTICE file distributed with
|
// See the LICENSE file in the project root for more information
|
||||||
* this work for additional information regarding copyright
|
|
||||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
||||||
* the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
* not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
|
|||||||
@ -1,21 +1,6 @@
|
|||||||
/*
|
// Licensed to Elasticsearch B.V under one or more agreements.
|
||||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
||||||
* license agreements. See the NOTICE file distributed with
|
// See the LICENSE file in the project root for more information
|
||||||
* this work for additional information regarding copyright
|
|
||||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
||||||
* the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
* not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
@ -29,10 +14,11 @@ function buildIlmExplainLifecycle (opts) {
|
|||||||
* Perform a [ilm.explain_lifecycle](https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-explain-lifecycle.html) request
|
* Perform a [ilm.explain_lifecycle](https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-explain-lifecycle.html) request
|
||||||
*
|
*
|
||||||
* @param {string} index - The name of the index to explain
|
* @param {string} index - The name of the index to explain
|
||||||
|
* @param {boolean} human - Return data such as dates in a human readable format
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const acceptedQuerystring = [
|
const acceptedQuerystring = [
|
||||||
|
'human'
|
||||||
]
|
]
|
||||||
|
|
||||||
const snakeCase = {
|
const snakeCase = {
|
||||||
|
|||||||
@ -1,21 +1,6 @@
|
|||||||
/*
|
// Licensed to Elasticsearch B.V under one or more agreements.
|
||||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
||||||
* license agreements. See the NOTICE file distributed with
|
// See the LICENSE file in the project root for more information
|
||||||
* this work for additional information regarding copyright
|
|
||||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
||||||
* the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
* not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
|
|||||||
@ -1,21 +1,6 @@
|
|||||||
/*
|
// Licensed to Elasticsearch B.V under one or more agreements.
|
||||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
||||||
* license agreements. See the NOTICE file distributed with
|
// See the LICENSE file in the project root for more information
|
||||||
* this work for additional information regarding copyright
|
|
||||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
||||||
* the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
* not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
|
|||||||
@ -1,21 +1,6 @@
|
|||||||
/*
|
// Licensed to Elasticsearch B.V under one or more agreements.
|
||||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
||||||
* license agreements. See the NOTICE file distributed with
|
// See the LICENSE file in the project root for more information
|
||||||
* this work for additional information regarding copyright
|
|
||||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
||||||
* the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
* not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
|
|||||||
@ -1,21 +1,6 @@
|
|||||||
/*
|
// Licensed to Elasticsearch B.V under one or more agreements.
|
||||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
||||||
* license agreements. See the NOTICE file distributed with
|
// See the LICENSE file in the project root for more information
|
||||||
* this work for additional information regarding copyright
|
|
||||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
||||||
* the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
* not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
|
|||||||
@ -1,21 +1,6 @@
|
|||||||
/*
|
// Licensed to Elasticsearch B.V under one or more agreements.
|
||||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
||||||
* license agreements. See the NOTICE file distributed with
|
// See the LICENSE file in the project root for more information
|
||||||
* this work for additional information regarding copyright
|
|
||||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
||||||
* the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
* not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
|
|||||||
@ -1,21 +1,6 @@
|
|||||||
/*
|
// Licensed to Elasticsearch B.V under one or more agreements.
|
||||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
||||||
* license agreements. See the NOTICE file distributed with
|
// See the LICENSE file in the project root for more information
|
||||||
* this work for additional information regarding copyright
|
|
||||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
||||||
* the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
* not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
|
|||||||
@ -1,21 +1,6 @@
|
|||||||
/*
|
// Licensed to Elasticsearch B.V under one or more agreements.
|
||||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
||||||
* license agreements. See the NOTICE file distributed with
|
// See the LICENSE file in the project root for more information
|
||||||
* this work for additional information regarding copyright
|
|
||||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
||||||
* the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
* not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
|
|||||||
@ -1,21 +1,6 @@
|
|||||||
/*
|
// Licensed to Elasticsearch B.V under one or more agreements.
|
||||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
||||||
* license agreements. See the NOTICE file distributed with
|
// See the LICENSE file in the project root for more information
|
||||||
* this work for additional information regarding copyright
|
|
||||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
||||||
* the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
* not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
|
|||||||
@ -1,21 +1,6 @@
|
|||||||
/*
|
// Licensed to Elasticsearch B.V under one or more agreements.
|
||||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
||||||
* license agreements. See the NOTICE file distributed with
|
// See the LICENSE file in the project root for more information
|
||||||
* this work for additional information regarding copyright
|
|
||||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
||||||
* the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
* not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
@ -91,11 +76,24 @@ function buildIndex (opts) {
|
|||||||
const err = new ConfigurationError('Missing required parameter: index')
|
const err = new ConfigurationError('Missing required parameter: index')
|
||||||
return handleError(err, callback)
|
return handleError(err, callback)
|
||||||
}
|
}
|
||||||
|
if (params['type'] == null) {
|
||||||
|
const err = new ConfigurationError('Missing required parameter: type')
|
||||||
|
return handleError(err, callback)
|
||||||
|
}
|
||||||
if (params['body'] == null) {
|
if (params['body'] == null) {
|
||||||
const err = new ConfigurationError('Missing required parameter: body')
|
const err = new ConfigurationError('Missing required parameter: body')
|
||||||
return handleError(err, callback)
|
return handleError(err, callback)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// check required url components
|
||||||
|
if (params['id'] != null && (params['type'] == null || params['index'] == null)) {
|
||||||
|
const err = new ConfigurationError('Missing required parameter of the url: type, index')
|
||||||
|
return handleError(err, callback)
|
||||||
|
} else if (params['type'] != null && (params['index'] == null)) {
|
||||||
|
const err = new ConfigurationError('Missing required parameter of the url: index')
|
||||||
|
return handleError(err, callback)
|
||||||
|
}
|
||||||
|
|
||||||
// validate headers object
|
// validate headers object
|
||||||
if (options.headers != null && typeof options.headers !== 'object') {
|
if (options.headers != null && typeof options.headers !== 'object') {
|
||||||
const err = new ConfigurationError(`Headers should be an object, instead got: ${typeof options.headers}`)
|
const err = new ConfigurationError(`Headers should be an object, instead got: ${typeof options.headers}`)
|
||||||
@ -119,12 +117,8 @@ function buildIndex (opts) {
|
|||||||
|
|
||||||
if ((index) != null && (type) != null && (id) != null) {
|
if ((index) != null && (type) != null && (id) != null) {
|
||||||
path = '/' + encodeURIComponent(index) + '/' + encodeURIComponent(type) + '/' + encodeURIComponent(id)
|
path = '/' + encodeURIComponent(index) + '/' + encodeURIComponent(type) + '/' + encodeURIComponent(id)
|
||||||
} else if ((index) != null && (id) != null) {
|
|
||||||
path = '/' + encodeURIComponent(index) + '/' + '_doc' + '/' + encodeURIComponent(id)
|
|
||||||
} else if ((index) != null && (type) != null) {
|
|
||||||
path = '/' + encodeURIComponent(index) + '/' + encodeURIComponent(type)
|
|
||||||
} else {
|
} else {
|
||||||
path = '/' + encodeURIComponent(index) + '/' + '_doc'
|
path = '/' + encodeURIComponent(index) + '/' + encodeURIComponent(type)
|
||||||
}
|
}
|
||||||
|
|
||||||
// build request object
|
// build request object
|
||||||
|
|||||||
@ -1,21 +1,6 @@
|
|||||||
/*
|
// Licensed to Elasticsearch B.V under one or more agreements.
|
||||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
||||||
* license agreements. See the NOTICE file distributed with
|
// See the LICENSE file in the project root for more information
|
||||||
* this work for additional information regarding copyright
|
|
||||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
||||||
* the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
* not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
|
|||||||
@ -1,21 +1,6 @@
|
|||||||
/*
|
// Licensed to Elasticsearch B.V under one or more agreements.
|
||||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
||||||
* license agreements. See the NOTICE file distributed with
|
// See the LICENSE file in the project root for more information
|
||||||
* this work for additional information regarding copyright
|
|
||||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
||||||
* the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
* not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
@ -29,6 +14,7 @@ function buildIndicesClearCache (opts) {
|
|||||||
* Perform a [indices.clear_cache](http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-clearcache.html) request
|
* Perform a [indices.clear_cache](http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-clearcache.html) request
|
||||||
*
|
*
|
||||||
* @param {list} index - A comma-separated list of index name to limit the operation
|
* @param {list} index - A comma-separated list of index name to limit the operation
|
||||||
|
* @param {boolean} field_data - Clear field data. This is deprecated. Prefer `fielddata`.
|
||||||
* @param {boolean} fielddata - Clear field data
|
* @param {boolean} fielddata - Clear field data
|
||||||
* @param {list} fields - A comma-separated list of fields to clear when using the `fielddata` parameter (default: all)
|
* @param {list} fields - A comma-separated list of fields to clear when using the `fielddata` parameter (default: all)
|
||||||
* @param {boolean} query - Clear query caches
|
* @param {boolean} query - Clear query caches
|
||||||
@ -36,10 +22,12 @@ function buildIndicesClearCache (opts) {
|
|||||||
* @param {boolean} allow_no_indices - Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
|
* @param {boolean} allow_no_indices - Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
|
||||||
* @param {enum} expand_wildcards - Whether to expand wildcard expression to concrete indices that are open, closed or both.
|
* @param {enum} expand_wildcards - Whether to expand wildcard expression to concrete indices that are open, closed or both.
|
||||||
* @param {list} index - A comma-separated list of index name to limit the operation
|
* @param {list} index - A comma-separated list of index name to limit the operation
|
||||||
|
* @param {boolean} request_cache - Clear request cache
|
||||||
* @param {boolean} request - Clear request cache
|
* @param {boolean} request - Clear request cache
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const acceptedQuerystring = [
|
const acceptedQuerystring = [
|
||||||
|
'field_data',
|
||||||
'fielddata',
|
'fielddata',
|
||||||
'fields',
|
'fields',
|
||||||
'query',
|
'query',
|
||||||
@ -47,6 +35,7 @@ function buildIndicesClearCache (opts) {
|
|||||||
'allow_no_indices',
|
'allow_no_indices',
|
||||||
'expand_wildcards',
|
'expand_wildcards',
|
||||||
'index',
|
'index',
|
||||||
|
'request_cache',
|
||||||
'request',
|
'request',
|
||||||
'pretty',
|
'pretty',
|
||||||
'human',
|
'human',
|
||||||
@ -56,9 +45,11 @@ function buildIndicesClearCache (opts) {
|
|||||||
]
|
]
|
||||||
|
|
||||||
const snakeCase = {
|
const snakeCase = {
|
||||||
|
fieldData: 'field_data',
|
||||||
ignoreUnavailable: 'ignore_unavailable',
|
ignoreUnavailable: 'ignore_unavailable',
|
||||||
allowNoIndices: 'allow_no_indices',
|
allowNoIndices: 'allow_no_indices',
|
||||||
expandWildcards: 'expand_wildcards',
|
expandWildcards: 'expand_wildcards',
|
||||||
|
requestCache: 'request_cache',
|
||||||
errorTrace: 'error_trace',
|
errorTrace: 'error_trace',
|
||||||
filterPath: 'filter_path'
|
filterPath: 'filter_path'
|
||||||
}
|
}
|
||||||
@ -92,7 +83,7 @@ function buildIndicesClearCache (opts) {
|
|||||||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring, warnings)
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring, warnings)
|
||||||
|
|
||||||
if (method == null) {
|
if (method == null) {
|
||||||
method = 'POST'
|
method = body == null ? 'GET' : 'POST'
|
||||||
}
|
}
|
||||||
|
|
||||||
var ignore = options.ignore
|
var ignore = options.ignore
|
||||||
|
|||||||
@ -1,21 +1,6 @@
|
|||||||
/*
|
// Licensed to Elasticsearch B.V under one or more agreements.
|
||||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
||||||
* license agreements. See the NOTICE file distributed with
|
// See the LICENSE file in the project root for more information
|
||||||
* this work for additional information regarding copyright
|
|
||||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
||||||
* the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
* not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
|
|||||||
@ -1,21 +1,6 @@
|
|||||||
/*
|
// Licensed to Elasticsearch B.V under one or more agreements.
|
||||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
||||||
* license agreements. See the NOTICE file distributed with
|
// See the LICENSE file in the project root for more information
|
||||||
* this work for additional information regarding copyright
|
|
||||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
||||||
* the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
* not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
@ -33,6 +18,7 @@ function buildIndicesCreate (opts) {
|
|||||||
* @param {string} wait_for_active_shards - Set the number of active shards to wait for before the operation returns.
|
* @param {string} wait_for_active_shards - Set the number of active shards to wait for before the operation returns.
|
||||||
* @param {time} timeout - Explicit operation timeout
|
* @param {time} timeout - Explicit operation timeout
|
||||||
* @param {time} master_timeout - Specify timeout for connection to master
|
* @param {time} master_timeout - Specify timeout for connection to master
|
||||||
|
* @param {boolean} update_all_types - Whether to update the mapping for all fields with the same name across all types or not
|
||||||
* @param {object} body - The configuration for the index (`settings` and `mappings`)
|
* @param {object} body - The configuration for the index (`settings` and `mappings`)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -41,6 +27,7 @@ function buildIndicesCreate (opts) {
|
|||||||
'wait_for_active_shards',
|
'wait_for_active_shards',
|
||||||
'timeout',
|
'timeout',
|
||||||
'master_timeout',
|
'master_timeout',
|
||||||
|
'update_all_types',
|
||||||
'pretty',
|
'pretty',
|
||||||
'human',
|
'human',
|
||||||
'error_trace',
|
'error_trace',
|
||||||
@ -52,6 +39,7 @@ function buildIndicesCreate (opts) {
|
|||||||
includeTypeName: 'include_type_name',
|
includeTypeName: 'include_type_name',
|
||||||
waitForActiveShards: 'wait_for_active_shards',
|
waitForActiveShards: 'wait_for_active_shards',
|
||||||
masterTimeout: 'master_timeout',
|
masterTimeout: 'master_timeout',
|
||||||
|
updateAllTypes: 'update_all_types',
|
||||||
errorTrace: 'error_trace',
|
errorTrace: 'error_trace',
|
||||||
filterPath: 'filter_path'
|
filterPath: 'filter_path'
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,21 +1,6 @@
|
|||||||
/*
|
// Licensed to Elasticsearch B.V under one or more agreements.
|
||||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
||||||
* license agreements. See the NOTICE file distributed with
|
// See the LICENSE file in the project root for more information
|
||||||
* this work for additional information regarding copyright
|
|
||||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
||||||
* the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
* not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
|
|||||||
@ -1,21 +1,6 @@
|
|||||||
/*
|
// Licensed to Elasticsearch B.V under one or more agreements.
|
||||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
||||||
* license agreements. See the NOTICE file distributed with
|
// See the LICENSE file in the project root for more information
|
||||||
* this work for additional information regarding copyright
|
|
||||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
||||||
* the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
* not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
|
|||||||
@ -1,21 +1,6 @@
|
|||||||
/*
|
// Licensed to Elasticsearch B.V under one or more agreements.
|
||||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
||||||
* license agreements. See the NOTICE file distributed with
|
// See the LICENSE file in the project root for more information
|
||||||
* this work for additional information regarding copyright
|
|
||||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
||||||
* the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
* not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
|
|||||||
@ -1,21 +1,6 @@
|
|||||||
/*
|
// Licensed to Elasticsearch B.V under one or more agreements.
|
||||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
||||||
* license agreements. See the NOTICE file distributed with
|
// See the LICENSE file in the project root for more information
|
||||||
* this work for additional information regarding copyright
|
|
||||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
||||||
* the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
* not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
|
|||||||
@ -1,21 +1,6 @@
|
|||||||
/*
|
// Licensed to Elasticsearch B.V under one or more agreements.
|
||||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
||||||
* license agreements. See the NOTICE file distributed with
|
// See the LICENSE file in the project root for more information
|
||||||
* this work for additional information regarding copyright
|
|
||||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
||||||
* the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
* not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
|
|||||||
@ -1,21 +1,6 @@
|
|||||||
/*
|
// Licensed to Elasticsearch B.V under one or more agreements.
|
||||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
||||||
* license agreements. See the NOTICE file distributed with
|
// See the LICENSE file in the project root for more information
|
||||||
* this work for additional information regarding copyright
|
|
||||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
||||||
* the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
* not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
|
|||||||
@ -1,21 +1,6 @@
|
|||||||
/*
|
// Licensed to Elasticsearch B.V under one or more agreements.
|
||||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
||||||
* license agreements. See the NOTICE file distributed with
|
// See the LICENSE file in the project root for more information
|
||||||
* this work for additional information regarding copyright
|
|
||||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
||||||
* the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
* not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
|
|||||||
@ -1,21 +1,6 @@
|
|||||||
/*
|
// Licensed to Elasticsearch B.V under one or more agreements.
|
||||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
||||||
* license agreements. See the NOTICE file distributed with
|
// See the LICENSE file in the project root for more information
|
||||||
* this work for additional information regarding copyright
|
|
||||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
||||||
* the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
* not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
|
|||||||
@ -1,21 +1,6 @@
|
|||||||
/*
|
// Licensed to Elasticsearch B.V under one or more agreements.
|
||||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
||||||
* license agreements. See the NOTICE file distributed with
|
// See the LICENSE file in the project root for more information
|
||||||
* this work for additional information regarding copyright
|
|
||||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
||||||
* the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
* not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
|
|||||||
@ -1,21 +1,6 @@
|
|||||||
/*
|
// Licensed to Elasticsearch B.V under one or more agreements.
|
||||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
||||||
* license agreements. See the NOTICE file distributed with
|
// See the LICENSE file in the project root for more information
|
||||||
* this work for additional information regarding copyright
|
|
||||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
||||||
* the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
* not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
|
|||||||
@ -1,21 +1,6 @@
|
|||||||
/*
|
// Licensed to Elasticsearch B.V under one or more agreements.
|
||||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
||||||
* license agreements. See the NOTICE file distributed with
|
// See the LICENSE file in the project root for more information
|
||||||
* this work for additional information regarding copyright
|
|
||||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
||||||
* the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
* not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
|
|||||||
@ -1,21 +1,6 @@
|
|||||||
/*
|
// Licensed to Elasticsearch B.V under one or more agreements.
|
||||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
||||||
* license agreements. See the NOTICE file distributed with
|
// See the LICENSE file in the project root for more information
|
||||||
* this work for additional information regarding copyright
|
|
||||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
||||||
* the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
* not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
@ -29,7 +14,7 @@ function buildIndicesGet (opts) {
|
|||||||
* Perform a [indices.get](http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-index.html) request
|
* Perform a [indices.get](http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-index.html) request
|
||||||
*
|
*
|
||||||
* @param {list} index - A comma-separated list of index names
|
* @param {list} index - A comma-separated list of index names
|
||||||
* @param {boolean} include_type_name - Whether to add the type name to the response (default: false)
|
* @param {boolean} include_type_name - Whether to add the type name to the response (default: true)
|
||||||
* @param {boolean} local - Return local information, do not retrieve the state from master node (default: false)
|
* @param {boolean} local - Return local information, do not retrieve the state from master node (default: false)
|
||||||
* @param {boolean} ignore_unavailable - Ignore unavailable indexes (default: false)
|
* @param {boolean} ignore_unavailable - Ignore unavailable indexes (default: false)
|
||||||
* @param {boolean} allow_no_indices - Ignore if a wildcard expression resolves to no concrete indices (default: false)
|
* @param {boolean} allow_no_indices - Ignore if a wildcard expression resolves to no concrete indices (default: false)
|
||||||
|
|||||||
@ -1,21 +1,6 @@
|
|||||||
/*
|
// Licensed to Elasticsearch B.V under one or more agreements.
|
||||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
||||||
* license agreements. See the NOTICE file distributed with
|
// See the LICENSE file in the project root for more information
|
||||||
* this work for additional information regarding copyright
|
|
||||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
||||||
* the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
* not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
|
|||||||
@ -1,21 +1,6 @@
|
|||||||
/*
|
// Licensed to Elasticsearch B.V under one or more agreements.
|
||||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
||||||
* license agreements. See the NOTICE file distributed with
|
// See the LICENSE file in the project root for more information
|
||||||
* this work for additional information regarding copyright
|
|
||||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
||||||
* the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
* not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
|
|||||||
@ -1,21 +1,6 @@
|
|||||||
/*
|
// Licensed to Elasticsearch B.V under one or more agreements.
|
||||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
||||||
* license agreements. See the NOTICE file distributed with
|
// See the LICENSE file in the project root for more information
|
||||||
* this work for additional information regarding copyright
|
|
||||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
||||||
* the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
* not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
@ -30,7 +15,7 @@ function buildIndicesGetMapping (opts) {
|
|||||||
*
|
*
|
||||||
* @param {list} index - A comma-separated list of index names
|
* @param {list} index - A comma-separated list of index names
|
||||||
* @param {list} type - A comma-separated list of document types
|
* @param {list} type - A comma-separated list of document types
|
||||||
* @param {boolean} include_type_name - Whether to add the type name to the response (default: false)
|
* @param {boolean} include_type_name - Whether to add the type name to the response.
|
||||||
* @param {boolean} ignore_unavailable - Whether specified concrete indices should be ignored when unavailable (missing or closed)
|
* @param {boolean} ignore_unavailable - Whether specified concrete indices should be ignored when unavailable (missing or closed)
|
||||||
* @param {boolean} allow_no_indices - Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
|
* @param {boolean} allow_no_indices - Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
|
||||||
* @param {enum} expand_wildcards - Whether to expand wildcard expression to concrete indices that are open, closed or both.
|
* @param {enum} expand_wildcards - Whether to expand wildcard expression to concrete indices that are open, closed or both.
|
||||||
|
|||||||
@ -1,21 +1,6 @@
|
|||||||
/*
|
// Licensed to Elasticsearch B.V under one or more agreements.
|
||||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
||||||
* license agreements. See the NOTICE file distributed with
|
// See the LICENSE file in the project root for more information
|
||||||
* this work for additional information regarding copyright
|
|
||||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
||||||
* the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
* not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
|
|||||||
@ -1,21 +1,6 @@
|
|||||||
/*
|
// Licensed to Elasticsearch B.V under one or more agreements.
|
||||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
||||||
* license agreements. See the NOTICE file distributed with
|
// See the LICENSE file in the project root for more information
|
||||||
* this work for additional information regarding copyright
|
|
||||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
||||||
* the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
* not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
|
|||||||
@ -1,21 +1,6 @@
|
|||||||
/*
|
// Licensed to Elasticsearch B.V under one or more agreements.
|
||||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
||||||
* license agreements. See the NOTICE file distributed with
|
// See the LICENSE file in the project root for more information
|
||||||
* this work for additional information regarding copyright
|
|
||||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
||||||
* the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
* not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
|
|||||||
@ -1,21 +1,6 @@
|
|||||||
/*
|
// Licensed to Elasticsearch B.V under one or more agreements.
|
||||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
||||||
* license agreements. See the NOTICE file distributed with
|
// See the LICENSE file in the project root for more information
|
||||||
* this work for additional information regarding copyright
|
|
||||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
||||||
* the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
* not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
|
|||||||
@ -1,21 +1,6 @@
|
|||||||
/*
|
// Licensed to Elasticsearch B.V under one or more agreements.
|
||||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
||||||
* license agreements. See the NOTICE file distributed with
|
// See the LICENSE file in the project root for more information
|
||||||
* this work for additional information regarding copyright
|
|
||||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
||||||
* the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
* not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user