title: Filed Value Factor not working in elastic search
body: <p>GET test/_search?size=3</p>
  
  <pre><code>{  
     "query":{  
        "function_score":{  
           "query":{  
              "match_all":{  
  
              }
           },
           "functions":[  
              {  
                 "field_value_factor":{  
                    "field":"maxDocs",
                    "factor":1.2,
                    "modifier":"sqrt"
                 }
              }
           ],
           "score_mode":"multiply"
        }
     }
  }
  </code></pre>
  
  <p>maxDocs has values 10,20,30,40,50,60 etc ... But when i run this query i am not getting the top 3 macDocs values. 40, 50, 60 is what i am expecting in the results. </p>