Sorting

You can sort Resume and JD search results by selecting further fields in the sorting parameter.

The sorting is an optional parameter (query) that can be passed in the API request of Simple Search, Boolean Search, and Match. Once sorting is passed in the request parameter of Simple Search and Boolean Search, it will return the resume/JD results that fulfills the sorting query, see below sorting sample query:

JSON request with Sorting parameter

Note:
  • The sort parameter arranges search results in either ascending (asc) or descending (desc) order.
  • When more than one sort criteria is provided, the second entry will only be used if the first entry results in a tie. If there is a third entry, it will only be used if the first and second entries are tied. This pattern continues with further entries.
"sorting":[
      {
        "field" : "Field Name 1",
        "order" : "asc/desc"
      },
	  {
        "field" : "Field Name 2",
        "order" : "asc/desc"
      }
]

The following fields can be used in the sorting (above) parameter:

Table 1. Facets Results
Resume Sorting Fields JD Sorting Fields
score score
ResumeDate JDDate
ResumeLanguage JobProfileTitle
ResumeCountry JobLocationCity
DateOfBirth JobLocationState
Category Organization
SubCategory MinimumYearsExperience
CurrentJobProfile MaximumYearsExperience
CurrentEmployer SalaryMinAmount
TotalExperienceInMonths SalaryMaxAmount
TotalExperienceInYear TotalExperienceRange
TotalExperienceRange
Institute
City
State
Country
ZipCode
Note: The Sorting can be applied on the custom values that are indexed into search engine. See below JSON request.

"sorting": [
        {
            "field": {
                "customValue": [
                    {
                        "field": "Field Name 1",
                        "order": "asc/desc"
                    }
                ]
            }
        }
    ],

Note: The Sorting with the custom fields is applicable only with the string type of custom fields.