- Issue created by @Anmol singh
- 🇩🇪Germany mkalkbrenner 🇩🇪
Please post debug information about the scoring. You can enable it in views.
- Status changed to Fixed
over 1 year ago 9:58am 16 June 2023 Automatically closed - issue fixed for 2 weeks with no activity.
- Status changed to Fixed
7 months ago 10:44am 28 May 2024 - 🇧🇦Bosnia and Herzegovina drale01 Sarajevo
I have same issue here and even more.
Content Type boosting and Boost more recent dates are not included in the score calculation.
This is my boosting scheme:
I have 4 content types with specific boosts
- Product group one = 21.00 boost
- Product group two = 13.00 boost
- Product group three = 8.00 boost
- Product group four = 5.00 boost
I have Boost more recent dates on field Authored on 3.00 boost
Body is 1.00 boost and Title is 2.00 boost.
And I'm getting this result in REST json from view, when I type term "eros":
[
{
"title": "Cui Eros Sed",
"created": "Sunday, April 14, 2024 - 00:46",
"type": "Product group one",
"search_api_relevance": "5.255206",
"search_api_solr_score_debugging": " 0.221677 <= weight(tcedgem_X3b_en_body:eros in 0) [SchemaSimilarity], result of:\n... 0.221677 <= score(freq=2.0), computed as boost * idf * tf from:\n... ... 0.280615 <= idf, computed as log(1 + (N - n + 0.5) / (n + 0.5)) from:\n... ... ... 35.000000 <= n, number of documents containing term\n... ... ... 46.000000 <= N, total number of documents with field\n... ... 0.789968 <= tf, computed as freq / (freq + k1 * (1 - b + b * dl / avgdl)) from:\n... ... ... 2.000000 <= freq, occurrences of term within document\n... ... ... 1.200000 <= k1, term saturation parameter\n... ... ... 0.750000 <= b, length normalization parameter\n... ... ... 536.000000 <= dl, length of field (approximate)\n... ... ... 2081.565200 <= avgdl, average length of field\n\n 5.033529 <= weight(tcngramm_X3b_en_title:eros in 0) [SchemaSimilarity], result of:\n... 5.033529 <= score(freq=1.0), computed as boost * idf * tf from:\n... ... 2.000000 <= boost\n... ... 3.444683 <= idf, computed as log(1 + (N - n + 0.5) / (n + 0.5)) from:\n... ... ... 1.000000 <= n, number of documents containing term\n... ... ... 46.000000 <= N, total number of documents with field\n... ... 0.730623 <= tf, computed as freq / (freq + k1 * (1 - b + b * dl / avgdl)) from:\n... ... ... 1.000000 <= freq, occurrences of term within document\n... ... ... 1.200000 <= k1, term saturation parameter\n... ... ... 0.750000 <= b, length normalization parameter\n... ... ... 3.000000 <= dl, length of field\n... ... ... 39.304348 <= avgdl, average length of field\n\n"
},
{
"title": "Volutpat",
"created": "Sunday, April 14, 2024 - 10:42",
"type": "Product group one",
"search_api_relevance": "0.25831726",
"search_api_solr_score_debugging": " 0.258317 <= weight(tcedgem_X3b_en_body:eros in 35) [SchemaSimilarity], result of:\n... 0.258317 <= score(freq=6.0), computed as boost * idf * tf from:\n... ... 0.280615 <= idf, computed as log(1 + (N - n + 0.5) / (n + 0.5)) from:\n... ... ... 35.000000 <= n, number of documents containing term\n... ... ... 46.000000 <= N, total number of documents with field\n... ... 0.920540 <= tf, computed as freq / (freq + k1 * (1 - b + b * dl / avgdl)) from:\n... ... ... 6.000000 <= freq, occurrences of term within document\n... ... ... 1.200000 <= k1, term saturation parameter\n... ... ... 0.750000 <= b, length normalization parameter\n... ... ... 504.000000 <= dl, length of field (approximate)\n... ... ... 2081.565200 <= avgdl, average length of field\n\n"
},
{
"title": "Plaga",
"created": "Wednesday, April 10, 2024 - 06:59",
"type": "Product group three",
"search_api_relevance": "0.2577701",
"search_api_solr_score_debugging": " 0.257770 <= weight(tcedgem_X3b_en_body:eros in 31) [SchemaSimilarity], result of:\n... 0.257770 <= score(freq=6.0), computed as boost * idf * tf from:\n... ... 0.280615 <= idf, computed as log(1 + (N - n + 0.5) / (n + 0.5)) from:\n... ... ... 35.000000 <= n, number of documents containing term\n... ... ... 46.000000 <= N, total number of documents with field\n... ... 0.918590 <= tf, computed as freq / (freq + k1 * (1 - b + b * dl / avgdl)) from:\n... ... ... 6.000000 <= freq, occurrences of term within document\n... ... ... 1.200000 <= k1, term saturation parameter\n... ... ... 0.750000 <= b, length normalization parameter\n... ... ... 536.000000 <= dl, length of field (approximate)\n... ... ... 2081.565200 <= avgdl, average length of field\n\n"
},
{
"title": "Jugis Roto Singularis Vindico",
"created": "Monday, April 8, 2024 - 11:57",
"type": "Product group three",
"search_api_relevance": "0.2549155",
"search_api_solr_score_debugging": " 0.254916 <= weight(tcedgem_X3b_en_body:eros in 14) [SchemaSimilarity], result of:\n... 0.254916 <= score(freq=5.0), computed as boost * idf * tf from:\n... ... 0.280615 <= idf, computed as log(1 + (N - n + 0.5) / (n + 0.5)) from:\n... ... ... 35.000000 <= n, number of documents containing term\n... ... ... 46.000000 <= N, total number of documents with field\n... ... 0.908417 <= tf, computed as freq / (freq + k1 * (1 - b + b * dl / avgdl)) from:\n... ... ... 5.000000 <= freq, occurrences of term within document\n... ... ... 1.200000 <= k1, term saturation parameter\n... ... ... 0.750000 <= b, length normalization parameter\n... ... ... 472.000000 <= dl, length of field (approximate)\n... ... ... 2081.565200 <= avgdl, average length of field\n\n"
},
{
"title": "Defui",
"created": "Thursday, April 11, 2024 - 21:25",
"type": "Product group two",
"search_api_relevance": "0.2549155",
"search_api_solr_score_debugging": " 0.254916 <= weight(tcedgem_X3b_en_body:eros in 19) [SchemaSimilarity], result of:\n... 0.254916 <= score(freq=5.0), computed as boost * idf * tf from:\n... ... 0.280615 <= idf, computed as log(1 + (N - n + 0.5) / (n + 0.5)) from:\n... ... ... 35.000000 <= n, number of documents containing term\n... ... ... 46.000000 <= N, total number of documents with field\n... ... 0.908417 <= tf, computed as freq / (freq + k1 * (1 - b + b * dl / avgdl)) from:\n... ... ... 5.000000 <= freq, occurrences of term within document\n... ... ... 1.200000 <= k1, term saturation parameter\n... ... ... 0.750000 <= b, length normalization parameter\n... ... ... 472.000000 <= dl, length of field (approximate)\n... ... ... 2081.565200 <= avgdl, average length of field\n\n"
},
{
"title": "Enim Melior Tamen Utinam",
"created": "Thursday, April 11, 2024 - 02:06",
"type": "Product group three",
"search_api_relevance": "0.2507502",
"search_api_solr_score_debugging": " 0.250750 <= weight(tcedgem_X3b_en_body:eros in 10) [SchemaSimilarity], result of:\n... 0.250750 <= score(freq=4.0), computed as boost * idf * tf from:\n... ... 0.280615 <= idf, computed as log(1 + (N - n + 0.5) / (n + 0.5)) from:\n... ... ... 35.000000 <= n, number of documents containing term\n... ... ... 46.000000 <= N, total number of documents with field\n... ... 0.893574 <= tf, computed as freq / (freq + k1 * (1 - b + b * dl / avgdl)) from:\n... ... ... 4.000000 <= freq, occurrences of term within document\n... ... ... 1.200000 <= k1, term saturation parameter\n... ... ... 0.750000 <= b, length normalization parameter\n... ... ... 408.000000 <= dl, length of field (approximate)\n... ... ... 2081.565200 <= avgdl, average length of field\n\n"
},
{
"title": "Genitus Quae",
"created": "Tuesday, April 9, 2024 - 02:08",
"type": "Product group one",
"search_api_relevance": "0.2484465",
"search_api_solr_score_debugging": " 0.248446 <= weight(tcedgem_X3b_en_body:eros in 24) [SchemaSimilarity], result of:\n... 0.248446 <= score(freq=4.0), computed as boost * idf * tf from:\n... ... 0.280615 <= idf, computed as log(1 + (N - n + 0.5) / (n + 0.5)) from:\n... ... ... 35.000000 <= n, number of documents containing term\n... ... ... 46.000000 <= N, total number of documents with field\n... ... 0.885365 <= tf, computed as freq / (freq + k1 * (1 - b + b * dl / avgdl)) from:\n... ... ... 4.000000 <= freq, occurrences of term within document\n... ... ... 1.200000 <= k1, term saturation parameter\n... ... ... 0.750000 <= b, length normalization parameter\n... ... ... 504.000000 <= dl, length of field (approximate)\n... ... ... 2081.565200 <= avgdl, average length of field\n\n"
},
{
"title": "Enim Luptatum Usitas",
"created": "Saturday, April 13, 2024 - 05:20",
"type": "Product group one",
"search_api_relevance": "0.2484465",
"search_api_solr_score_debugging": " 0.248446 <= weight(tcedgem_X3b_en_body:eros in 38) [SchemaSimilarity], result of:\n... 0.248446 <= score(freq=4.0), computed as boost * idf * tf from:\n... ... 0.280615 <= idf, computed as log(1 + (N - n + 0.5) / (n + 0.5)) from:\n... ... ... 35.000000 <= n, number of documents containing term\n... ... ... 46.000000 <= N, total number of documents with field\n... ... 0.885365 <= tf, computed as freq / (freq + k1 * (1 - b + b * dl / avgdl)) from:\n... ... ... 4.000000 <= freq, occurrences of term within document\n... ... ... 1.200000 <= k1, term saturation parameter\n... ... ... 0.750000 <= b, length normalization parameter\n... ... ... 504.000000 <= dl, length of field (approximate)\n... ... ... 2081.565200 <= avgdl, average length of field\n\n"
}
]Product group one can't have such low score as 5.255206 because it's boost factor is 21.
Also inside content type Product group one can't be older node "Tuesday, April 9, 2024 - 02:08" in front of more recent "Saturday, April 13, 2024 - 05:20"
I'm using:
Drupal 10.2.2
Solr 8.8
Search API Solr 4.3.3
Search API 8.x-1.34But same issue is on:
9.5.11
Solr 8.8.2
Search API Solr 4.3.1
Search API 8.x-1.30