【问题标题】:How to make full site searchable in silverstripe?如何在 silverstripe 中使整个站点可搜索?
【发布时间】:2014-11-21 12:09:17
【问题描述】:

如何在 silverstripe 中使整个站点可搜索。默认仅搜索标题和内容,而不搜索文本字段。 接受任何帮助。

【问题讨论】:

  • 如果您解决了您的问题,请为正确答案投票,或发布您的解决方案。

标签: silverstripe


【解决方案1】:

查看https://stackoverflow.com/a/14489700/494421 以搜索自定义数据对象。

还有一个强大的搜索模块,它在后台使用 Lucene:https://code.google.com/p/lucene-silverstripe-plugin/ 有许多配置选项,包括搜索自定义字段。

【讨论】:

    【解决方案2】:

    Silverstripe 不允许在自定义字段中进行搜索。

    您可以使用zirak/searchable-dataobjects module 在任意页面字段和任意数据对象页面上实现搜索。

    【讨论】:

      猜你喜欢
      • 2019-07-01
      • 2015-05-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多