Skip to content

Commit da8d2c2

Browse files
author
yui
committed
feat(SortBy): add missing update regarding sort_by and removing unused fields
1 parent 7f1ea6a commit da8d2c2

File tree

2 files changed

+14
-26
lines changed

2 files changed

+14
-26
lines changed

docs/Api/ResumeSearchApi.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -250,18 +250,16 @@ $apiInstance = new OpenAPI\Client\Api\ResumeSearchApi(
250250
$config
251251
);
252252
$indexname = 'indexname_example'; // string
253-
$cache = true; // bool | Optional. Whether the search results should be cached or not.
254-
$cache_time = 300; // int | Optional. Seconds. Ignored if *cache* is <code style='color: #333333; opacity: 0.9'>false</code>.
255253
$size = 50; // int | Optional. Number of documents to return.
256254
$offset = 0; // int | Optional. Number of documents to skip. Ignored if *cache* is <code style='color: #333333; opacity: 0.9'>true</code>.
257255
$min_score = 0; // float | Optional. Minimum pertinence score.
258-
$search_id = 'search_id_example'; // string | Both the initial search request and each subsequent scroll request returns a *SearchID*. The *SearchID* may or may not change between requests; however, only the most recently received *SearchID* should be used.
259256
$src_lang = 'src_lang_example'; // string | Queries language. If left empty each query's language will detected automatically, if not it is not explicitly set into the request body.
260257
$dst_lang = array('dst_lang_example'); // string[] | Results languages. If left empty then the results will not be filtered by language and the they will contain multi-language results.
258+
$sort_by = 'CreationDate'; // string | Optional. Results are sorted by selected field values.
261259
$docs_search_query = new \OpenAPI\Client\Model\DocsSearchQuery(); // \OpenAPI\Client\Model\DocsSearchQuery
262260

263261
try {
264-
$result = $apiInstance->searchResumesPOST($indexname, $cache, $cache_time, $size, $offset, $min_score, $search_id, $src_lang, $dst_lang, $docs_search_query);
262+
$result = $apiInstance->searchResumesPOST($indexname, $size, $offset, $min_score, $src_lang, $dst_lang, $sort_by,$docs_search_query);
265263
print_r($result);
266264
} catch (Exception $e) {
267265
echo 'Exception when calling ResumeSearchApi->searchResumesPOST: ', $e->getMessage(), PHP_EOL;

lib/inda_hr/ResumeSearchApi.php

Lines changed: 12 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1495,24 +1495,21 @@ public function searchResumesEvidencePOSTRequest($indexname, $evidence_request,
14951495
* Search Resumes
14961496
*
14971497
* @param string $indexname indexname (required)
1498-
* @param bool $cache Optional. Whether the search results should be cached or not. (optional, default to true)
1499-
* @param int $cache_time Optional. Seconds. Ignored if *cache* is &lt;code style&#x3D;&#39;color: #333333; opacity: 0.9&#39;&gt;false&lt;/code&gt;. (optional, default to 300)
15001498
* @param int $size Optional. Number of documents to return. (optional, default to 50)
15011499
* @param int $offset Optional. Number of documents to skip. Ignored if *cache* is &lt;code style&#x3D;&#39;color: #333333; opacity: 0.9&#39;&gt;true&lt;/code&gt;. (optional, default to 0)
15021500
* @param float $min_score Optional. Minimum pertinence score. (optional, default to 0)
1503-
* @param string $search_id Both the initial search request and each subsequent scroll request returns a *SearchID*. The *SearchID* may or may not change between requests; however, only the most recently received *SearchID* should be used. (optional)
15041501
* @param string $src_lang Queries language. If left empty each query&#39;s language will detected automatically, if not it is not explicitly set into the request body. (optional)
15051502
* @param string[] $dst_lang Results languages. If left empty then the results will not be filtered by language and the they will contain multi-language results. (optional)
1503+
* @param string $sort_by Results are sorted by selected field values. (optional)
15061504
* @param \OpenAPI\Client\Model\DocsSearchQuery $docs_search_query docs_search_query (optional)
15071505
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['searchResumesPOST'] to see the possible values for this operation
1508-
*
15091506
* @throws \OpenAPI\Client\ApiException on non-2xx response
15101507
* @throws \InvalidArgumentException
15111508
* @return \OpenAPI\Client\Model\FoundDocsResponse|\OpenAPI\Client\Model\ErrorModel|\OpenAPI\Client\Model\ErrorModel|\OpenAPI\Client\Model\ErrorModel
15121509
*/
1513-
public function searchResumesPOST($indexname, $cache = true, $cache_time = 300, $size = 50, $offset = 0, $min_score = 0, $search_id = null, $src_lang = null, $dst_lang = null, $docs_search_query = null, string $contentType = self::contentTypes['searchResumesPOST'][0])
1510+
public function searchResumesPOST($indexname, $size = 50, $offset = 0, $min_score = 0, $src_lang = null, $dst_lang = null, $sort_by = null, $docs_search_query = null, string $contentType = self::contentTypes['searchResumesPOST'][0])
15141511
{
1515-
list($response) = $this->searchResumesPOSTWithHttpInfo($indexname, $cache, $cache_time, $size, $offset, $min_score, $search_id, $src_lang, $dst_lang, $docs_search_query, $contentType);
1512+
list($response) = $this->searchResumesPOSTWithHttpInfo($indexname, $size, $offset, $min_score, $src_lang, $dst_lang, $sort_by, $docs_search_query, $contentType);
15161513
return $response;
15171514
}
15181515

@@ -1522,24 +1519,21 @@ public function searchResumesPOST($indexname, $cache = true, $cache_time = 300,
15221519
* Search Resumes
15231520
*
15241521
* @param string $indexname (required)
1525-
* @param bool $cache Optional. Whether the search results should be cached or not. (optional, default to true)
1526-
* @param int $cache_time Optional. Seconds. Ignored if *cache* is &lt;code style&#x3D;&#39;color: #333333; opacity: 0.9&#39;&gt;false&lt;/code&gt;. (optional, default to 300)
15271522
* @param int $size Optional. Number of documents to return. (optional, default to 50)
15281523
* @param int $offset Optional. Number of documents to skip. Ignored if *cache* is &lt;code style&#x3D;&#39;color: #333333; opacity: 0.9&#39;&gt;true&lt;/code&gt;. (optional, default to 0)
15291524
* @param float $min_score Optional. Minimum pertinence score. (optional, default to 0)
1530-
* @param string $search_id Both the initial search request and each subsequent scroll request returns a *SearchID*. The *SearchID* may or may not change between requests; however, only the most recently received *SearchID* should be used. (optional)
15311525
* @param string $src_lang Queries language. If left empty each query&#39;s language will detected automatically, if not it is not explicitly set into the request body. (optional)
15321526
* @param string[] $dst_lang Results languages. If left empty then the results will not be filtered by language and the they will contain multi-language results. (optional)
15331527
* @param \OpenAPI\Client\Model\DocsSearchQuery $docs_search_query (optional)
15341528
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['searchResumesPOST'] to see the possible values for this operation
1535-
*
1529+
* @param string $sort_by Results are sorted by selected field values. (optional)
15361530
* @throws \OpenAPI\Client\ApiException on non-2xx response
15371531
* @throws \InvalidArgumentException
15381532
* @return array of \OpenAPI\Client\Model\FoundDocsResponse|\OpenAPI\Client\Model\ErrorModel|\OpenAPI\Client\Model\ErrorModel|\OpenAPI\Client\Model\ErrorModel, HTTP status code, HTTP response headers (array of strings)
15391533
*/
1540-
public function searchResumesPOSTWithHttpInfo($indexname, $cache = true, $cache_time = 300, $size = 50, $offset = 0, $min_score = 0, $search_id = null, $src_lang = null, $dst_lang = null, $docs_search_query = null, string $contentType = self::contentTypes['searchResumesPOST'][0])
1534+
public function searchResumesPOSTWithHttpInfo($indexname, $size = 50, $offset = 0, $min_score = 0, $src_lang = null, $dst_lang = null, $sort_by = null, $docs_search_query = null, string $contentType = self::contentTypes['searchResumesPOST'][0])
15411535
{
1542-
$request = $this->searchResumesPOSTRequest($indexname, $cache, $cache_time, $size, $offset, $min_score, $search_id, $src_lang, $dst_lang, $docs_search_query, $contentType);
1536+
$request = $this->searchResumesPOSTRequest($indexname, $size, $offset, $min_score, $search_id, $src_lang, $dst_lang, $sort_by, $docs_search_query, $contentType);
15431537

15441538
try {
15451539
$options = $this->createHttpClientOption();
@@ -1700,23 +1694,21 @@ public function searchResumesPOSTWithHttpInfo($indexname, $cache = true, $cache_
17001694
* Search Resumes
17011695
*
17021696
* @param string $indexname (required)
1703-
* @param bool $cache Optional. Whether the search results should be cached or not. (optional, default to true)
1704-
* @param int $cache_time Optional. Seconds. Ignored if *cache* is &lt;code style&#x3D;&#39;color: #333333; opacity: 0.9&#39;&gt;false&lt;/code&gt;. (optional, default to 300)
17051697
* @param int $size Optional. Number of documents to return. (optional, default to 50)
17061698
* @param int $offset Optional. Number of documents to skip. Ignored if *cache* is &lt;code style&#x3D;&#39;color: #333333; opacity: 0.9&#39;&gt;true&lt;/code&gt;. (optional, default to 0)
17071699
* @param float $min_score Optional. Minimum pertinence score. (optional, default to 0)
1708-
* @param string $search_id Both the initial search request and each subsequent scroll request returns a *SearchID*. The *SearchID* may or may not change between requests; however, only the most recently received *SearchID* should be used. (optional)
17091700
* @param string $src_lang Queries language. If left empty each query&#39;s language will detected automatically, if not it is not explicitly set into the request body. (optional)
17101701
* @param string[] $dst_lang Results languages. If left empty then the results will not be filtered by language and the they will contain multi-language results. (optional)
1702+
* @param string $sort_by Results are sorted by selected field values. (optional)
17111703
* @param \OpenAPI\Client\Model\DocsSearchQuery $docs_search_query (optional)
17121704
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['searchResumesPOST'] to see the possible values for this operation
17131705
*
17141706
* @throws \InvalidArgumentException
17151707
* @return \GuzzleHttp\Promise\PromiseInterface
17161708
*/
1717-
public function searchResumesPOSTAsync($indexname, $cache = true, $cache_time = 300, $size = 50, $offset = 0, $min_score = 0, $search_id = null, $src_lang = null, $dst_lang = null, $docs_search_query = null, string $contentType = self::contentTypes['searchResumesPOST'][0])
1709+
public function searchResumesPOSTAsync($indexname, $size = 50, $offset = 0, $min_score = 0, $src_lang = null, $dst_lang = null, $sort_by = null, $docs_search_query = null, string $contentType = self::contentTypes['searchResumesPOST'][0])
17181710
{
1719-
return $this->searchResumesPOSTAsyncWithHttpInfo($indexname, $cache, $cache_time, $size, $offset, $min_score, $search_id, $src_lang, $dst_lang, $docs_search_query, $contentType)
1711+
return $this->searchResumesPOSTAsyncWithHttpInfo($indexname, $size, $offset, $min_score, $src_lang, $dst_lang, $sort_by, $docs_search_query, $contentType)
17201712
->then(
17211713
function ($response) {
17221714
return $response[0];
@@ -1730,24 +1722,22 @@ function ($response) {
17301722
* Search Resumes
17311723
*
17321724
* @param string $indexname (required)
1733-
* @param bool $cache Optional. Whether the search results should be cached or not. (optional, default to true)
1734-
* @param int $cache_time Optional. Seconds. Ignored if *cache* is &lt;code style&#x3D;&#39;color: #333333; opacity: 0.9&#39;&gt;false&lt;/code&gt;. (optional, default to 300)
17351725
* @param int $size Optional. Number of documents to return. (optional, default to 50)
17361726
* @param int $offset Optional. Number of documents to skip. Ignored if *cache* is &lt;code style&#x3D;&#39;color: #333333; opacity: 0.9&#39;&gt;true&lt;/code&gt;. (optional, default to 0)
17371727
* @param float $min_score Optional. Minimum pertinence score. (optional, default to 0)
1738-
* @param string $search_id Both the initial search request and each subsequent scroll request returns a *SearchID*. The *SearchID* may or may not change between requests; however, only the most recently received *SearchID* should be used. (optional)
17391728
* @param string $src_lang Queries language. If left empty each query&#39;s language will detected automatically, if not it is not explicitly set into the request body. (optional)
17401729
* @param string[] $dst_lang Results languages. If left empty then the results will not be filtered by language and the they will contain multi-language results. (optional)
1730+
* @param string $sort_by Results are sorted by selected field values. (optional)
17411731
* @param \OpenAPI\Client\Model\DocsSearchQuery $docs_search_query (optional)
17421732
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['searchResumesPOST'] to see the possible values for this operation
17431733
*
17441734
* @throws \InvalidArgumentException
17451735
* @return \GuzzleHttp\Promise\PromiseInterface
17461736
*/
1747-
public function searchResumesPOSTAsyncWithHttpInfo($indexname, $cache = true, $cache_time = 300, $size = 50, $offset = 0, $min_score = 0, $search_id = null, $src_lang = null, $dst_lang = null, $docs_search_query = null, string $contentType = self::contentTypes['searchResumesPOST'][0])
1737+
public function searchResumesPOSTAsyncWithHttpInfo($indexname, $size = 50, $offset = 0, $min_score = 0, $src_lang = null, $dst_lang = null, $sort_by = null, $docs_search_query = null, string $contentType = self::contentTypes['searchResumesPOST'][0])
17481738
{
17491739
$returnType = '\OpenAPI\Client\Model\FoundDocsResponse';
1750-
$request = $this->searchResumesPOSTRequest($indexname, $cache, $cache_time, $size, $offset, $min_score, $search_id, $src_lang, $dst_lang, $docs_search_query, $contentType);
1740+
$request = $this->searchResumesPOSTRequest($indexname, $size, $offset, $min_score, $src_lang, $dst_lang, $sort_by, $docs_search_query, $contentType);
17511741

17521742
return $this->client
17531743
->sendAsync($request, $this->createHttpClientOption())

0 commit comments

Comments
 (0)