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

  1. Set a weight of 0 for an item.
  2. 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

Command icon 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

jacobsaw created an issue. See original summary.

jacobsaw’s picture

Status: Active » Needs review
interx’s picture

Status: Needs review » Fixed

This looks good, thanks!

Now that this issue is closed, please review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, please credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.