full-text-search - 在 Silverstripe 4 中启用全文搜索
问题描述
在 Silverstripe 4 FulltextSearchable::enable(); _config.php 失败有谁知道如何让它再次工作,以便 $SearchForm 在模板中工作?
解决方案
\SilverStripe\ORM\Search\FulltextSearchable::enable();
在 _config.php 中不
使用
FulltextSearchable::enable();
推荐阅读
- reactjs - 使用 React Beautiful DnD 关闭/打开扩展面板 onDragStart/onDragEnd
- vim - vim 中的映射选项卡更改
- python - 在 Flask 中的 py 文件之间使用重定向时的 BuildError
- ubuntu - 如何在 tmux 中更改默认的开始选择键?
- logging - 在 11.0 版之后,日志未显示在 Netbeans 控制台中
- javascript - 如何遍历存储在本地存储 JavaScript 中的数组?
- python - 键错误:
在多标签 U-net 中 - vbscript - 在经典 ASP 中使用输出参数进行 DLL 调用
- java - 不使用 FXML 时如何修复 Java 错误?
- javascript - 如何缩小 Laravel .js 和 .css 文件