0
是否有任何可能禁用搜索某些字段?对于'按钮',将搜索权重设置为0仍然基于他的内容显示搜索结果。我的代码在contenttypes.yml:BOLT CMS - 禁用搜索某些字段
foo:
show_in_menu: Bar
name: Foo Bar
taxonomy: [sorters]
fields:
title:
type: text
group: General
lead:
type: textarea
group: General
url:
type: text
group: General
button:
type: text
required: true
pattern: ^.{1,15}$
searchweight: 0
group: Button
label: Text on button
postfix: Required, max 15 characters.
它(在这个例子中的“按钮”)适用于整个的contentType,而不是指定字段 –