为电话簿配置ext:solr

问题描述 投票:0回答:1

我想让索尔索引电话簿。我使用扩展随附的安装脚本中的配置,并且具有所有语言的核心,尽管我们仅使用德语核心('core_de`),因为页面仅是德语。

我将fe_users与电话簿项目的其他字段一起使用。

我的配置就像:

plugin.tx_solr {
    index {
        queue {
            :
            phonebook = 1
            phonebook {
                table = fe_users
                fields {
                    content = COA
                        :
                    title = COA
                        :
                    :
                    last_name_stringS = last_name
                    last_name1_phoneticS = last_name
                    last_name2_textExactS = last_name
                    last_name3_textNgramS = last_name
                    :
               }
           }
        }
    }
}

为了更好地显示结果,我为contenttitle构建了COA,其中分别建立了全名。为了具有不同的可能性,我定义了sur_name的多个版本以进行索引。

我的问题是搜索名称,因为这些名称与通常的词干不匹配。

存在一个姓为Dankelmann的条目。搜索danke会得到此记录。搜索dankel没有结果

TYPO3:9.5.16ext:solr:10.0.1solr:8.5.0

solr typo3 typo3-9.x
1个回答
0
投票

尽管我定义了字段的所有变体,但我忘记将这些字段添加到查询的字段列表中。因此解决方案只是:

plugin.tx_solr {
    :
    search {
        :
        query {
            queryFields = content^40.0, last_name^30.0, last_name1_phoneticS^20.0, last_name3_textNgramS^20.0, first_name_stringS^20.0, username_stringS^15.0, title^5.0, tagsH1^5.0, description^4.0, tagsH2H3^3.0, tagsH4H5H6^2.0, keywords^2.0, tagsInline^1.0, abstract^1.0, subtitle^1.0, navtitle^1.0, author^1.0
        }
    }
}
© www.soinside.com 2019 - 2024. All rights reserved.