Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PUT testing
- {
- "mappings": {
- "stuff": {
- "properties": {
- "slug": {
- "type": "string",
- "index": "not_analyzed"
- },
- "score": {
- "type": "float"
- },
- "variations": {
- "type": "nested",
- "properties": {
- "color": {
- "type": "string",
- "index": "not_analyzed"
- },
- "score": {
- "type": "float"
- }
- }
- }
- }
- }
- }
- }
- PUT /testing/stuff/foo-1
- {
- "slug": "foo-1",
- "score": 20,
- "variations": [
- {
- "color": "black",
- "score": 1.0
- },
- {
- "color": "white",
- "score": 1.2
- }
- ]
- }
- PUT /testing/stuff/foo-2
- {
- "slug": "foo-2",
- "score": 10,
- "variations": [
- {
- "color": "pink",
- "score": 2.22
- },
- {
- "color": "blue",
- "score": 2.00
- }
- ]
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement