Problem/Motivation
Setting a boost of 0 for a field results in error: InvalidTextWeight: Invalid weight '0' for field named 'field_content_key'. Weights must be positive numbers. Parameters: definition.
The purpose of allowing for this would be to not have a scoringProfile set. My use case is that I want to be able to primarily control ranking with semantic configuration.
Steps to reproduce
- Set a weight of 0 for an item.
- Save configuration
Expected result:
Field is not set in scoring profile
Actual result:
Field is set and Azure throws an error.
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork search_api_aais-3548784
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
jacobsaw commentedComment #4
interx commentedThis looks good, thanks!