title: How do scoring profiles generate scores in Azure Search?
body: <p>I want to add a scoring profile on my index on Azure Search. More specifically, every document in my index has a <code>weight</code> field of type <code>Edm.Double</code>, and I want to boost them according to this value. I don't want to just directly sort them with respect to <code>weight</code> because the relevance of the search term is also important. </p>
  
  <p>So just to test it out, I created a scoring profile with a magnitude function with boost value 1000 (just to see if I got how this thing works), linear interpolation, starting value 0 and ending value 1. What I was expecting was the boost value to be added to the overall search score. So a document with weight 0.5 would get a boost of 500, whereas a document with  weight 0.125 would get a boost of 125. However, the resulting scores were nowhere near this much intuitive. </p>
  
  <p>I have a couple of questions in this case:</p>
  
  <p>1) How is the function score generated in this case? I have documents with weights close to each other(let's say 0.5465 and 0.5419), but the differences between their final scores is around 100-150, whereas I would expect it to be around 4-5.</p>
  
  <p>2) How are function scores and weights aggregated into a final score for each search result?</p>