我的Symfony項目中有FOSElasticaBundle。我有ElasticaBundle是一個實體,它有一些「簡單的領域」,那樣的人的ID(如owner_id)平坦FOS ElasticaBundle嵌套字段
mappings:
createdAt:
type: "date"
等領域關聯到其他實體,如
owner:
type: "nested"
properties:
fullname:
type: string
index: not_analyzed
,因爲我需要讓用戶全名可以用ES/Kibana進行搜索。這有效,但它創建了一個嵌套字段「owner.fullname」,這種類型的字段不能用Kibana進行搜索(這是因爲多年來有關於它的請求)。
所以我問:有沒有辦法平整該字段,以便ES中有一個簡單的純字符串字段,名爲「owner_fullname」,沒有嵌套數據?
謝謝