Custom Value
Custom Value helps to index documents with the custom values.
Note: If resume or JD do not have the value you want to search, then those
values can be sent as the custom values during indexing the document.
Once custom values are indexed, you can search based on these custom values in the search engine.
The Custom value is an optional parameter (query) that can be passed in the API request of Parse and Index, Simple Search, Boolean Search, Match, Match with ID, Match with Multiple Sub-User Ids, and One To One Match.
The following sections describe how to search documents into the search engine with custom values:
Custom Value Parameters
Follow below table on the Custom Value Parameters:
Name | Type | Description | Remarks |
---|---|---|---|
customValue | Object | When you pass custom values during indexing then you can search based on these custom values in the search engine. For more details, see Parse and Index. | Optional |
multiFieldOperator | String | You can use either AND or OR boolean expression. This creates
a condition between the parameters in the customValue
object.
|
Optional |
requiredCustomValues | Boolean | You can use either AND or OR boolean expression. This creates
a condition between the parameters in the customValue and
match object.
|
Optional |
showCustomValue | Boolean | This parameter when true then the matched customValue will be returned in the response. | Optional |
explainScore | Boolean | Default is false. If set true this returns details about how a document is searched. For more details, click Explain Score | Optional |
explainScoreType | String | Default is text. It can be set as JSON and work if ExplainScore is true. For more details, click Explain Score | Optional |
pageSize | Integer | Number of records return in one API call:
Contact support@rchilli.com to update the limit. For more details, click Pagination. |
Optional |
pageStart | Integer | Start index of record to return. Can be used for paging when multiple record are searched. Default is 0. For more details, click Pagination | Optional |
Custom Value parameter in Parse and Index
Note: Refer Parse and Index to know full
details.
"customValue": {
"customField1": "Value 1",
"customField2": [
"Value 2"
],
"customField3": [
{
"docField1": "doc field value 1",
"docField2": [
"value 1",
"value 2"
]
}
],
},
Custom Value parameter in Simple Search
"customValue": {
"customField1": "Value 1",
"customField2": [
"Value 2"
],
"customField3": [
{
"docField1": "doc field value 1",
"docField2": [
"value 1",
"value 2"
]
}
],
"multiFieldOperator": "AND/OR"
},
"showCustomValue": true/false,
Custom Value parameter in Boolean Search
"customValue": {
"customField1": "Value 1",
"customField2": [
"Value 2"
],
"customField3": [
{
"docField1": "doc field value 1",
"docField2": [
"value 1",
"value 2"
]
}
],
"multiFieldOperator": "AND/OR"
},
"showCustomValue": true/false,
Custom Value parameter in Match
{
"index": {
"indexType": "This is either Resume or JD",
"indexKey": "your_user_key"
},
"match": {
"docType": "JD/Resume",
"jsonData": "json data in base64"
},
"customValue": {
"customField1": "Value 1",
"customField2": [
"Value 2"
],
"customField3": [
{
"docField1": "doc field value 1",
"docField2": [
"value 1",
"value 2"
]
}
],
"multiFieldOperator": "AND/OR"
},
"requiredCustomValues": true/false,
"showCustomValue": true/false,
"pageSize": 10,
"pageStart": 0,
"explainScore": true,
"explainScoreType": "json"
}
Custom Value parameter in Match with ID
{
"index": {
"indexType": "Resume/JD",
"indexKey": "Your_user_key"
},
"match": {
"docType": "JD/Resume",
"jsonData": "json data in base64",
"matchId": [
"200004442229"
]
},
"customValue": {
"customField1": "Value 1",
"customField2": [
"Value 2"
],
"customField3": [
{
"docField1": "doc field value 1",
"docField2": [
"value 1",
"value 2"
]
}
],
"multiFieldOperator": "AND/OR"
},
"requiredCustomValues": true/false,
"showCustomValue": true/false,
"pageSize": 10,
"pageStart": 0,
"explainScore": true,
"explainScoreType": "json"
}
Custom Value parameter in Match with Multiple sub-user ID
{
"index": {
"indexType": "Resume/JD",
"indexKey": "your_user_key",
"subUserId": [
"subUserid1",
"subUserid2"
]
},
"match": {
"docType": "JD",
"jsonData": "json data in base64"
},
"customValue": {
"customField1": "Value 1",
"customField2": [
"Value 2"
],
"customField3": [
{
"docField1": "doc field value 1",
"docField2": [
"value 1",
"value 2"
]
}
],
"multiFieldOperator": "AND/OR"
},
"requiredCustomValues": true/false,
"showCustomValue": true/false,
"pageSize": 10,
"pageStart": 0,
"explainScore": true,
"explainScoreType": "json"
}
Custom Value parameter in One to One Match
{
"index": {
"indexKey": "your_user_key"
},
"match": {
"resumeContent": "Resume content in base64",
"resumeFileName": "sample.doc",
"jdContent": "JD content in base64",
"jdFileName": "JD sample.txt"
},
"resumeCustomValue": {
"customField1": "Value 1",
"customField3": "Value 3",
"multiFieldOperator": "AND/OR"
},
"jdCustomValue": {
"customField1": "Value 1",
"customField3": "Value 3",
"multiFieldOperator": "AND/OR"
},
"requiredCustomValues": true/false,
"matchType": "JD to Resume/Resume to JD",
"explainScore": true,
"explainScoreType": "json"
}