Searching in other fields than rendered item will return no results

Created on 30 March 2023, almost 2 years ago
Updated 9 November 2023, about 1 year ago

Problem/Motivation

Changing the query fields from settings.php without including the rendered item field will show no results because Solr fields names are being generated in wrong way and without considering the boost that has been set in the search api index fields.

Steps to reproduce

1- Enable and configure Search Api Solr and Search API Federated Solr.
2- in setting.php add other full text fields than rendered item like :

$config['search_api_federated_solr.search_app.settings']['index']['query_fields'] = [
// targeted full text fields machine names as they are in Search api index fields
'body'
];

3- Go to search page that has been created from Search API Federated Solr and enter a keyword that you are sure its in the body of a node then submit and you will have no results.

🐛 Bug report
Status

Needs review

Version

4.0

Component

Code

Created by

🇯🇴Jordan odai jbr

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @odai jbr
  • 🇯🇴Jordan odai jbr

    This patch allows to search in all full text fields that has been added to the Search api index fields in case there are no fields has been added to the settings.php and it also fixes the score calculating as now the boost values that has been set in Search api index fields will be considered.

  • Status changed to Needs review about 1 year ago
Production build 0.71.5 2024