Function score and default value

EDIT

This question was based on a misunderstanding on my part, and is no longer valid. Please ignore it :slight_smile:

QUESTION

How can I set the origin/starting value for function scores, which is now 0.5?

EXAMPLE

I've got some documents (names) returned from a query, with scores of say:

  • John, 0.3
  • John Doe, 0.2
  • Jane, 0.1

Now I'd like to apply some function scores to them.

I've got a function score function with weight 1.1. This will yield a 0.55 (0.5 * 1.1) score from this function.

With the boost_mode of multiply this will then be multiplied with the values above and yield the following final scores:

  • John, 0.165 (0.3 * 0.55)
  • John Doe, 0.11 (0.2 * 0.55)
  • Jane, 0.055 (0.1 * 0.55)

My question is, how can I change the 0.5 value to be 1?

If I could, the function would yield 1 * 1.1 = 1.1 and the final scores would be:

  • John, 0.33 (0.3 * 1.1)
  • John Doe, 0.22 (0.2 * 1.1)
  • Jane, 0.11 (0.1 * 1.1)

(this example isn't my real issue, it's a simplified example)

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.