Skip to content

Commit a9a96ef

Browse files
amirarendsdkd-kaehm
authored andcommitted
[BUGFIX] Correct field name casing for subTitle and navTitle in TypoScript queryFields
The Solr schema defines subTitle and navTitle as camelCase field names, but the TypoScript configuration referenced them as subtitle and navtitle (all lowercase). Since Solr field names are case-sensitive, both fields were indexed correctly but silently excluded from all search queries. Fixes: #4617 Ports: #4618
1 parent 70ad4b8 commit a9a96ef

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Configuration/TypoScript/Solr/setup.typoscript

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ plugin.tx_solr {
7878
allowedSites = __solr_current_site
7979

8080
// qf parameter http://wiki.apache.org/solr/DisMaxQParserPlugin#qf_.28Query_Fields.29
81-
queryFields = content^40.0, title^5.0, keywords^2.0, tagsH1^5.0, tagsH2H3^3.0, tagsH4H5H6^2.0, tagsInline^1.0, description^4.0, abstract^1.0, subtitle^1.0, navtitle^1.0, author^1.0
81+
queryFields = content^40.0, title^5.0, keywords^2.0, tagsH1^5.0, tagsH2H3^3.0, tagsH4H5H6^2.0, tagsInline^1.0, description^4.0, abstract^1.0, subTitle^1.0, navTitle^1.0, author^1.0
8282

8383
// fl parameter http://wiki.apache.org/solr/CommonQueryParameters#fl
8484
returnFields = *, score
@@ -112,7 +112,7 @@ plugin.tx_solr {
112112
phrase = 0
113113
phrase {
114114
// Note: Those are field for implicit phrase searching. On explicit "phrase searching" Apache Solr uses queryFields("qf" parameter)
115-
fields = content^10.0, title^10.0, tagsH1^10.0, tagsH2H3^10.0, tagsH4H5H6^10.0, tagsInline^10.0, description^10.0, abstract^10.0, subtitle^10.0, navtitle^10.0
115+
fields = content^10.0, title^10.0, tagsH1^10.0, tagsH2H3^10.0, tagsH4H5H6^10.0, tagsInline^10.0, description^10.0, abstract^10.0, subTitle^10.0, navTitle^10.0
116116
// The number of words between words in query phrase is the slop-value.
117117
// e.g. on query phrase "Hello World"
118118
// @ slop = 0 will math "Hello World" but not "Hello wonderful World"
@@ -143,7 +143,7 @@ plugin.tx_solr {
143143
// Note: The triplets phrases will be stripped down to two two-word phrases
144144
bigramPhrase = 0
145145
bigramPhrase {
146-
fields = content^10.0, title^10.0, tagsH1^10.0, tagsH2H3^10.0, tagsH4H5H6^10.0, tagsInline^10.0, description^10.0, abstract^10.0, subtitle^10.0, navtitle^10.0
146+
fields = content^10.0, title^10.0, tagsH1^10.0, tagsH2H3^10.0, tagsH4H5H6^10.0, tagsInline^10.0, description^10.0, abstract^10.0, subTitle^10.0, navTitle^10.0
147147
slop = 0
148148
}
149149

@@ -158,7 +158,7 @@ plugin.tx_solr {
158158
// "to triplets phrases"
159159
trigramPhrase = 0
160160
trigramPhrase {
161-
fields = content^10.0, title^10.0, tagsH1^10.0, tagsH2H3^10.0, tagsH4H5H6^10.0, tagsInline^10.0, description^10.0, abstract^10.0, subtitle^10.0, navtitle^10.0
161+
fields = content^10.0, title^10.0, tagsH1^10.0, tagsH2H3^10.0, tagsH4H5H6^10.0, tagsInline^10.0, description^10.0, abstract^10.0, subTitle^10.0, navTitle^10.0
162162
slop = 0
163163
}
164164
}

0 commit comments

Comments
 (0)