Zero Score Weightage
Currently, in the SearchAndMatch API, entities are returned with weightage when a document is matched but if no document is matched then entities with weightage are not returned.
With the implementation of this feature, all the created entities are returned with a score of 0 if no document is matched.
To enable this feature in the API response, you need to add zeroScoreWeightage parameter in your API request and set it to True. Refer to the example below for reference:
"zeroScoreWeightage": true
Note:
-
The zeroScoreWeightage parameter can be passed in the API request of Simple Search, Match, Match with ID, Match with Multiple Sub-User Ids, and One To One Match.
- This feature is applicable for Resume to JD and JD to Resume match type.
Sample Request
Note: The below sample request is for Simple Search API, similarly, you can pass zeroScoreWeightage in
Match, Match with ID, Match with Multiple Sub-User Ids, and
One To One Match.
{
"index": {
"indexType": "Resume",
"indexKey": "Use your indexKey",
"subUserId": "user1"
},
"query": {
"keyword": "Software Engineer with 4 year experience in java, sql"
},
"pageSize": 1,
"pageStart": 0,
"explainScore": true,
"explainScoreType": "json",
"zeroScoreWeightage": true
}
Sample Response
Note: The below sample response is for Simple Search API, similarly, you can get response for Match, Match with ID, Match with Multiple Sub-User Ids, and
One To One Match.
{
"count": 0,
"pageStart": 0,
"pageSize": 1,
"records": [],
"explainScore": [
{
"explaination": {
"score": 0.0,
"maxScore": 100.0,
"SimpleSearch": {
"score": 0.0,
"maxScore": 100.0,
"detailScore": [
{
"score": 0.0,
"maxScore": 58.33,
"entity": "JobProfile",
"value": "Software Engineer"
},
{
"score": 0.0,
"maxScore": 16.67,
"entity": "TotalExperienceInYear",
"value": "[4 TO *]"
},
{
"score": 0.0,
"maxScore": 12.5,
"entity": "Skill",
"value": "Java"
},
{
"score": 0.0,
"maxScore": 12.5,
"entity": "Skill",
"value": "Sql"
}
]
}
}
}
]
}