5
I don’t know very well the power of javascript, but I wanted to do the following:
I have two models:
Vacancy:
{
Name: "VagaExemplo",
Description: "Descricao",
Skills: {
"56b68108869038280db291e6": "90",
"56b68108869038280db291d9": "70",
}
}
and various models of the:
People1
{
Name: "PessoaExemplo",
Description: "Descricao",
Skills: {
"56b68108869038280db291d9": "60",
},
Pontuacao: 10
}
People2
{
Name: "PessoaExemplo2",
Description: "Descricao",
Skills: {
"56b68108869038280db291e6": "90",
"56b68108869038280db291d9": "80",
},
Pontuacao: 0
}
The idea is to multiply the value of each Skill of the vacancy with that of the person and go adding, to generate a score for face person.
Could someone help me or at least a link with a material about it? Hugs.
"multiply the value of each Skill of the wave with the person " or multiply with the score? as well "with the person"?
– Sergio
for example, the person also has a Skill (they are identified by the ids), I think of something like, People1.Score = 60 x 70 ( that is 4200) People2.Score = (90 x 90) + (80 x 70) (that is 13700).
– Lucas Fantacucci