일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- 파이썬
- licence delete curl
- MySQL
- Test
- springboot
- flask
- 차트
- License
- zip 암호화
- sort
- ELASTIC
- 900gle
- analyzer test
- token filter test
- license delete
- TensorFlow
- Elasticsearch
- API
- docker
- zip 파일 암호화
- aggs
- Kafka
- Java
- plugin
- Mac
- aggregation
- matplotlib
- Python
- query
- high level client
Archives
- Today
- Total
개발잡부
[es] object sort 본문
반응형
검색결과 내부 object 를 정렬 해보자
작업중..
DELETE sort_doo
PUT sort_doo
{
"settings": {
"index": {
"number_of_shards": 3,
"number_of_replicas": 0
}
},
"mappings": {
"properties": {
"keyword": {
"type": "keyword"
},
"attribute": {
"properties": {
"name": {
"type": "text"
},
"contry": {
"properties": {
"name": {
"type": "text"
},
"weight": {
"type": "float"
}
}
}
}
}
}
}
}
PUT sort_doo/_doc/1
{
"keyword": "포도주",
"attribute.name": "포도1",
"attribute.contry": [
{
"name": "중국",
"weight": 1,
"age": 10
},
{
"name": "한국",
"weight": 2,
"age": 10
},
{
"name": "미국",
"weight": 3,
"age": 10
}
]
}
GET sort_doo/_search
{
"query": {
"term": {
"keyword": {
"value": "포도주"
}
}
}
}
반응형
Comments