Hello,

Is there a way to assign a higher score to certain documents based on a
'weight' field?


E.g., if I have the following two documents:
{
        "name":"United Kingdom",
        "weight":2730,
} {
        "name":"United States of America",
        "weight":11246,
}

Currently, if I issue the following query:
q=name:united

These are the scores I get:
{
        "name":"United Kingdom",
        "weight":2730,
        "score":9.464103},
} {
        "name":"United States of America",
        "weight":11246,
        "score":7.766276}]
}


However, I'd like the score to somehow factor in the number in the "weight"
column.  (And hence, increase the score assigned to "United States of
America" in this case.)

Much thanks

Reply via email to