magento2-vsbridge-indexer icon indicating copy to clipboard operation
magento2-vsbridge-indexer copied to clipboard

cant create field type keyword, always created as text

Open taoufiqaitali opened this issue 4 years ago • 0 comments

we created a custom module to index custom data to use in vsf we followed structure you do to create index for cms block and cms page we set fields like this image $properties = [ 'id' => ['type' => FieldInterface::TYPE_LONG], 'id_ville' => ['type' => FieldInterface::TYPE_KEYWORD], 'name_ville' => ['type' => FieldInterface::TYPE_KEYWORD], ]; but in elasticsearch it created as text field image

"properties": { "name_ville": { "type": "text", "fields": { "keyword": { "ignore_above": 256.0, "type": "keyword" } } }, "id_ville": { "type": "text", "fields": { "keyword": { "ignore_above": 256.0, "type": "keyword" } } }, "id": { "type": "long" },

text field cant be used for sorting for that we need to set as keyword

taoufiqaitali avatar Dec 04 '20 11:12 taoufiqaitali