Skip to content

Can not update document using 'update button' #450

@dmoskovtsov

Description

@dmoskovtsov

Describe the bug
Can not update document using 'update button'

Dejavu Version
Web latest.

To Reproduce
Connect

  1. Go to https://dejavu.appbase.io/. Connect to elastic cluster v8
  2. Click 'editing' mode.
  3. Select 1 item from the table via checkbox.
  4. Click blue 'Update' button.
  5. You see document json. Edit one of the fields.
  6. Click blue 'Ok' button
  7. See error HTTP STATUS: 400 - Unable to put data

{ "root_cause": [ { "type": "mapper_parsing_exception", "reason": "Field [_ignored] is a metadata field and cannot be added inside a document. Use the index API request parameters." } ], "type": "mapper_parsing_exception", "reason": "failed to parse field [_ignored] of type [_ignored] in document with id 'Os9RwXEBSqVr35TmEzDZ'. Preview of field's value: 'description.keyword'", "caused_by": { "type": "mapper_parsing_exception", "reason": "Field [_ignored] is a metadata field and cannot be added inside a document. Use the index API request parameters." } }

Expected behavior
Item to be updated. Note, same works using an update from the table by typing.

Screenshots

Additional context
Example of the document:
{
"description": "hello",
"_ignored": [
"description.keyword"
]
}

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions