i have 2 document ...
document 1
{ "field1": "Value1",
"field2": "Value2",
"field3": "Value3"
}
document 2
{ "field1": "Value1",
"field2": "Value2"
}
When I do a search with "field1": "Value1" and "field2": "Value2" and "field3": "Value3"
i would like to return both document 1 and 2 but document 1 with much high score, while document 2 with lesser score.
How should I do it?
Please note that in real use case there are more that 15 fields in a document and search criteria could also vary a lot. But all times field names and value to be searched are known.