You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This make that in complex Systems like CMS a lot fields are created, or a lot of converts are required to map all fields in a collected fields. I think it would be a great addition to make this possible out of the box via some alias field type. Lets say we map all content data into an own content field e.g.:
This way the Marshaller would be required to create a document like this:
{
"id": "1",
"title": "New Blog",
"block_titles": [
"Title",
"Title 2",
"Video",
"Quote"
],
"content": [
"<article><h2>Some Subtitle<\/h2><p>A html field with some content<\/p><\/article>",
"<p>Description<\/p>",
"<p>Description 2<\/p>",
"<p>Some quote and more<\/p>",
"New Footer"
]
}
The question which is coming up here if we always should save the original JSON in a _raw field to so we get it back in the same way we are setting it. This would also mean that the documents inside search indexes get a little bit bigger as e.g. elasticsearch will save whole doc already in _source but with additonal _raw the _source will twice as big as without _raw. Example:
Current JSON Size: 494
Squashed JSON File: 265
Squashed with Raw JSON Size: 767
If we have a document like this:
Currently we are mapping each field into an own field itself.
This make that in complex Systems like CMS a lot fields are created, or a lot of converts are required to map all fields in a collected fields. I think it would be a great addition to make this possible out of the box via some alias field type. Lets say we map all content data into an own
content
field e.g.:This way the
Marshaller
would be required to create a document like this:The question which is coming up here if we always should save the original
JSON
in a_raw
field to so we get it back in the same way we are setting it. This would also mean that the documents inside search indexes get a little bit bigger as e.g. elasticsearch will save whole doc already in_source
but with additonal _raw the_source
will twice as big as without _raw. Example:/c @chirimoya @wachterjohannes
This is also related to #200
The text was updated successfully, but these errors were encountered: