Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mattms/elasticsearch_notes
Notes for learning Elasticsearch
https://github.com/mattms/elasticsearch_notes
Last synced: about 1 month ago
JSON representation
Notes for learning Elasticsearch
- Host: GitHub
- URL: https://github.com/mattms/elasticsearch_notes
- Owner: MattMS
- License: mit
- Created: 2015-06-24T09:18:10.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-06-28T12:03:03.000Z (over 9 years ago)
- Last Synced: 2024-04-09T16:40:11.929Z (9 months ago)
- Homepage:
- Size: 141 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Learn Elasticsearch
Learn how to use Elasticsearch.
Example code is listed in alphabetical order, which is different to what
Elasticsearch will return.## Disclaimer
These notes have been created while I am learning Elasticsearch.
They will probably change as I learn more.
This is *not* a tutorial by an Elasticsearch expert.You have been warned!
## CRUD
[Create](./document/create),
[read](./document/read),
[update](./document/update) and
[delete](./document/delete) documents.## Search
```
GET /my_index/my_document_type/_search
```Returns:
```
{
"_shards": {},
"hits": {
"hits": [
{
"_id": "1",
"_index": "my_index",
"_score": 1,
"_source": {
"email": "[email protected]",
"name": "Matt"
},
"_type": "my_document_type",
"_version": 1,
"found": true
}
],
"max_score": 1,
"total": 1
},
"timed_out": false,
"took": 6
}
``````
GET /my_index/my_document_type/_search?q=name:Matt
```- [Search Lite](https://www.elastic.co/guide/en/elasticsearch/guide/current/_search_lite.html)