solr 变更Faceting的内容类型名称

juzqafwq  于 2022-11-05  发布在  Solr
关注(0)|答案(1)|浏览(176)

我将文档中的以下TS(apache-solr-for-typo 3)用于一个简单的方面

plugin.tx_solr.search {
    faceting = 1
    faceting {
        facets {
            contentType {
                label = Content Type
                field = type
            }
        }
    }
}

结果是,例如

sys_file_metadata (691)
tt_address (341)
tx_news_domain_model_news (180)
pages (153)
tx_events2_domain_model_event (2)

如何将tt_address等名称重新命名为Personen,以及其他名称,以提高可读性?
下面是我的tt_address配置

plugin.tx_solr.index.queue {
    tt_address = 1
    tt_address {
        table = tt_address
        lable = Personen

        additionalWhereClause = first_name NOT LIKE ''

        fields {
            abstract = position
            description = description
            title = name
            personen_stringS = Personen

            content = SOLR_CONTENT
            content {
                field = title
            }
            url = TEXT
            url {
                typolink.parameter.field = detail
                typolink.returnLast = url
                typolink.useCacheHash = 0
            }
        }
    }
}

类型3 10.4.18.,溶液11.0.4

bfrts1fy

bfrts1fy1#

它不在您设置标签的队列中。

plugin {
    tx_solr {
        search {
            faceting = 1
            faceting {
                facets {

# contentType {

# label = Content Type

# field = type

# }

                    contentType {
                        label = Filter
                        field = type

                        renderingInstruction = CASE
                        renderingInstruction {
                            key.field = optionValue

                            pages = TEXT
                            pages.value = Internetseiten

                            tx_solr_file = TEXT
                            tx_solr_file.value = Dateien

                            tx_news_domain_model_news = TEXT
                            tx_news_domain_model_news.value = Nachrichten

                            tt_address = TEXT
                            tt_address.value = Adressen
                        }
                   }
               :

相关问题