【问题标题】:Customizing drupal search results solr attachment module自定义 drupal 搜索结果 solr 附件模块
【发布时间】:2013-03-28 19:49:07
【问题描述】:

我无法在我的 drupal 7、apache solr 3.2、Apache Solr Search Integration 7.x-1.1、Apache Solr Attachments 7.x -1.2 中显示 serach 的 sn-p。

我希望能够为每个结果(如谷歌搜索)显示文本的 sn-ps,我该怎么做?在这里他可以显示sn-ps http://www.acquia.com/blog/use-apache-solr-search-files ?

【问题讨论】:

标签: drupal solr


【解决方案1】:

在你的 template.php 文件中使用这个函数

function theme_apachesolr_search_mlt_recommendation_block($vars) {

}

在 vars 中你得到所有搜索结果并添加你想要的

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-02-29
    相关资源
    最近更新 更多