【发布时间】:2017-09-15 09:12:18
【问题描述】:
是否有可能禁用对某些字段的搜索? 'button' 的 Searchweight 设置为 0 仍会根据他的内容显示搜索结果。我在 contenttypes.yml 中的代码:
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.
【问题讨论】: