The html field type is superfluous. A string field can be used instead. The html field type currently only has one special logic. It sanitizes the html before storing it in Elasticsearch. Only the text will be added to the index.
We could move this logic to the elasticsearch settings of the field. Thus including a "stripHtml": true would apply the logic to the field contents.
The html field type is superfluous. A string field can be used instead. The html field type currently only has one special logic. It sanitizes the html before storing it in Elasticsearch. Only the text will be added to the index.
We could move this logic to the
elasticsearch
settings of the field. Thus including a"stripHtml": true
would apply the logic to the field contents.