Skip to content
This repository was archived by the owner on Aug 16, 2022. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions docs/elasticsearch/full-text.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,21 @@ GET _search
}
```

## Curl


```bash
curl --insecure -XGET -u admin:admin https://<host>:<port>/<index>/_search \
-H "content-type: application/json" \
-d'{
"query": {
"match": {
"title": "wind"
}
}
}'
```

The query accepts the following options. For descriptions of each, see [Options](#options).

```json
Expand Down
4 changes: 3 additions & 1 deletion docs/install/docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ services:
- 9600:9600 # required for Performance Analyzer
networks:
- odfe-net

odfe-node2:
image: amazon/opendistro-for-elasticsearch:0.7.0
container_name: odfe-node2
Expand All @@ -116,6 +117,7 @@ services:
- odfe-data2:/usr/share/elasticsearch/data
networks:
- odfe-net

kibana:
image: amazon/opendistro-for-elasticsearch-kibana:0.7.0
container_name: odfe-kibana
Expand Down Expand Up @@ -194,7 +196,7 @@ docker exec -it <container-id> /bin/bash

## Important settings

For production workloads, make sure the [Linux setting](https://www.kernel.org/doc/Documentation/sysctl/vm.txt) `vm.max_map_count` is set to at least 262144. On the Open Distro for Elasticsearch Docker image, this setting is the default. To verify, start a Bash session in the container and run:
For production workloads, make sure the [Linux setting](https://www.kernel.org/doc/Documentation/sysctl/vm.txt) `vm.max_map_count` is set to at least 262144. This setting can be added to the host machine's `/etc/sysctl.conf` file, by adding the following line `vm.max_map_count=262144`, then running `sudo sysctl -p` to reload. On the Open Distro for Elasticsearch Docker image, this setting is the default. To verify, start a Bash session in the container and run:

```bash
cat /proc/sys/vm/max_map_count
Expand Down