To allow Partial Search in Boolean Search Method pass the value with (.*?) for the partial search. Eg. in the request if you pass for a degree like “Bachelor(.*?)” then it will search for all the Degrees like Bachelor of Science, Bachelor of Arts, Bachelor degree in Accounting, etc.
Here is the Request Format:
{
"index": {
"indexType": "Resume/JD",
"indexKey": "UserKey"
},
"query": {
"required": {
"JobProfile": [
"Software (.*?)"
]
}
},
"facet": {
"fields": [
"Skill",
"Degree"
],
"limit": 10
},
"explainScore": true,
"explainScoreType": "json"
}
Response:
{
"count": 1,
"pageStart": 0,
"pageSize": 50,
"records": [
{
"id": "123456789_1234567891234",
"score": 100.0,
"CurrentEmployer": "ABC Corporation",
"TotalExperienceInYear": 10.5,
"CurrentJobProfile": "Software Tester",
"FullName": "ROBERTSMIT H",
"City": "Alabama"
}
],
"facet": {
"Skill": [
{
"value": "Agile",
"count": 1
},
{
"value": "Architecture",
"count": 1
},
{
"value": "Automated Test Scripts",
"count": 1
},
{
"value": "Batch Process",
"count": 1
},
{
"value": "Black Box Testing",
"count": 1
},
{
"value": "Bug Reporting",
"count": 1
},
{
"value": "Business Requirements",
"count": 1
},
{
"value": "Change Request",
"count": 1
},
{
"value": "Customer Service",
"count": 1
},
{
"value": "Defect Report",
"count": 1
}
],
"Degree": [
{
"value": "Bachelor Of Science",
"count": 1
}
]
},
"explainScore": [
{
"id": "123456789_1234567891234",
"explaination": {
"score": 100.0,
"maxScore": 100.0,
"BooleanSearch": {
"score": 100.0,
"maxScore": 100.0,
"detailScore": [
{
"score": 100.0,
"maxScore": 100.0,
"entity": "JobProfile",
"condition": "Required",
"value": "/software (.*?)/"
}
]
}
}
}
]
}
If you have any questions, you can always contact RChilli support at support@rchilli.com.
Comments
0 comments
Please sign in to leave a comment.