Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- "chods": {
- "mappings": {
- "chod": {
- "properties": {
- "state": {
- "type": "text"
- }
- }
- },
- "chods": {},
- "variant": {
- "_parent": {
- "type": "chod"
- },
- "_routing": {
- "required": true
- },
- "properties": {
- "percentage": {
- "type": "double"
- }
- }
- }
- }
- },
- PUT /chods/variant/565?parent=36442
- { // some data }
- {
- "_index":"chods",
- "_type":"variant",
- "_id":"565",
- "_version":6,
- "result":"updated",
- "_shards":{
- "total":2,
- "successful":1,
- "failed":0
- },
- "created":false
- }
- GET /chods/variant/565?parent=36442
- {
- "_index": "chods",
- "_type": "variant",
- "_id": "565",
- "_version": 7,
- "_routing": "36443",
- "_parent": "36443",
- "found": true,
- "_source": {
- ...
- }
- }
- GET /chods/_search
- {
- "query": {
- "parent_id": {
- "type": "variant",
- "id": "36442"
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement