Good afternoon! Such a question: if you set the
enabled: false
flag to the field located in the nested
object, when updating with painless, will the whole document be reindexed?
There is a scheme:
'mappings' => [ 'properties' => [ 'FullCategoryName' => [ 'type' => 'text', 'fields' => [ 'Token' => [ 'type' => 'text', 'analyzer' => 'FullCategoryNameAnalyzer' ] ] ], 'CategoryName' => [ 'type' => 'text', 'fields' => [ 'Token' => [ 'type' => 'text', 'analyzer' => 'CategoryNameAnalyzer' ] ] ], 'Link' => [ 'type' => 'keyword', 'index' => false ], 'DomenID' => [ 'type' => 'long' ], 'ContainerID' => [ 'type' => 'long', 'index' => false ], 'Dates' => [ 'type' => 'nested', 'properties' => [ 'Date' => [ 'type' => 'date', 'format' => 'yyyy-MM-dd' ], 'Cities' => [ 'type' => 'nested', 'properties' => [ 'CityID' => [ 'type' => 'long' ], 'RequestHash' => [ 'enabled' => false ], 'Statuses' => [ 'type' => 'nested', 'properties' => [ 'StatusID' => [ 'type' => 'long' ], 'PriceCount' => [ 'enabled' => false ] ] ] ] ] ] ] ] ]
With frequent updating of the RequestHash and PriceCount fields (about 10,000 documents per minute), is this scheme optimal or can some mechanisms be used to work more optimally? Thanks!