我想在typo3 solr facets中添加来自自定义表的下拉列表

时间:2014-11-06 15:13:18

标签: solr typo3

我已正确索引页面并且solr正在运行,但我想插入构面。

我在下面写了typoscript,用于添加表tx_srcdataprovider_domain_model_tag,它在索引队列中添加但没有正确编入索引。

如何在方面的下拉列表中显示所有标记字段?

请给我一些例子,在typo3 solr中添加facet。

提前致谢

tx_srcdataprovider_domain_model_tag = 1
tx_srcdataprovider_domain_model_tag {

   table = tx_srcdataprovider_domain_model_tag
   fields {
      tag = tag                 
      // the special SOLR_CONTENT content object cleans HTML and RTE     fields
    content = SOLR_CONTENT
    content {
            field = description
    }

    // the special SOLR_RELATION content object resolves relations
    category_stringM = SOLR_RELATION
    category_stringM {
        localField = category
        multiValue = 1
    }

    // build the URL through typolink, make sure to use returnLast = url
    url = TEXT
    url {
        typolink.parameter = 1
        typolink.additionalParams = &tx_srcdataprovider_domain_model_tag[item]={field:uid}
        typolink.additionalParams.insertData = 1
        typolink.returnLast = url
        typolink.useCacheHash = 1
    }

    // the special SOLR_MULTIVALUE content object allows to index multivalue fields
    keywords = SOLR_MULTIVALUE
    keywords {
        field = keywords
    }
    tag_stringS  = tag
}

0 个答案:

没有答案