Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PUT /testing
- {
- "mappings": {
- "doc": {
- "properties": {
- "speaker": {"type": "text"},
- "play_name": {"type" : "text"},
- "line_id": {"type": "integer"},
- "speech_number": {"type": "nested"}
- }
- }
- }
- }
- POST testing/doc/1
- {
- "speaker": "sundeep",
- "play_name": "pidugu",
- "line_id": 1,
- "speech_number": [{"jack":"jack"}]
- }
- POST testing/doc/1/_update // its always adding a null to the speech_number array how do i fix this
- {
- "_id": "1",
- "script" : "ctx._source.speech_number.add(params.speech_number)",
- "params":{
- "speech_number": {"jack":"jac11k"}
- }
- }
Add Comment
Please, Sign In to add comment