-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
276 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?php | ||
|
||
/** | ||
* Elastic Enterprise Search | ||
* | ||
* @link https://github.com/elastic/enterprise-search-php | ||
* @copyright Copyright (c) Elasticsearch B.V (https://www.elastic.co) | ||
* @license https://opensource.org/licenses/MIT MIT License | ||
* | ||
* Licensed to Elasticsearch B.V under one or more agreements. | ||
* Elasticsearch B.V licenses this file to you under the MIT License. | ||
* See the LICENSE file in the project root for more information. | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Elastic\EnterpriseSearch\AppSearch\Request; | ||
|
||
use Elastic\EnterpriseSearch\AppSearch\Schema\MultiSearchData; | ||
use Elastic\EnterpriseSearch\Request\Request; | ||
|
||
/** | ||
* Submit a multi search | ||
* | ||
* @see https://www.elastic.co/guide/en/app-search/current/multi-search.html | ||
* @generated This file is generated, please do not edit | ||
*/ | ||
class MultiSearch extends Request | ||
{ | ||
/** | ||
* @param string $engineName Name of the engine | ||
* @param MultiSearchData $multi_search_data | ||
*/ | ||
public function __construct(string $engineName, MultiSearchData $multi_search_data = null) | ||
{ | ||
$this->method = 'POST'; | ||
$engine_name = urlencode($engineName); | ||
$this->path = "/api/as/v1/engines/$engine_name/multi_search"; | ||
$this->headers['Content-Type'] = 'application/json'; | ||
$this->body = $multi_search_data; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?php | ||
|
||
/** | ||
* Elastic Enterprise Search | ||
* | ||
* @link https://github.com/elastic/enterprise-search-php | ||
* @copyright Copyright (c) Elasticsearch B.V (https://www.elastic.co) | ||
* @license https://opensource.org/licenses/MIT MIT License | ||
* | ||
* Licensed to Elasticsearch B.V under one or more agreements. | ||
* Elasticsearch B.V licenses this file to you under the MIT License. | ||
* See the LICENSE file in the project root for more information. | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Elastic\EnterpriseSearch\AppSearch\Schema; | ||
|
||
/** | ||
* @generated This file is generated, please do not edit | ||
*/ | ||
class CrawlRequestOverrides | ||
{ | ||
public CrawlRequestOverridesParameters $overrides; | ||
|
||
|
||
public function __construct(CrawlRequestOverridesParameters $overrides) | ||
{ | ||
$this->overrides = $overrides; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?php | ||
|
||
/** | ||
* Elastic Enterprise Search | ||
* | ||
* @link https://github.com/elastic/enterprise-search-php | ||
* @copyright Copyright (c) Elasticsearch B.V (https://www.elastic.co) | ||
* @license https://opensource.org/licenses/MIT MIT License | ||
* | ||
* Licensed to Elasticsearch B.V under one or more agreements. | ||
* Elasticsearch B.V licenses this file to you under the MIT License. | ||
* See the LICENSE file in the project root for more information. | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Elastic\EnterpriseSearch\EnterpriseSearch\Request; | ||
|
||
use Elastic\EnterpriseSearch\Request\Request; | ||
|
||
/** | ||
* Retrieve information about search engines | ||
* | ||
* @see https://www.elastic.co/guide/en/enterprise-search/current/search-engines-apis.html | ||
* @generated This file is generated, please do not edit | ||
*/ | ||
class GetSearchEngines extends Request | ||
{ | ||
public function __construct() | ||
{ | ||
$this->method = 'GET'; | ||
$this->path = "/api/search_engines"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?php | ||
|
||
/** | ||
* Elastic Enterprise Search | ||
* | ||
* @link https://github.com/elastic/enterprise-search-php | ||
* @copyright Copyright (c) Elasticsearch B.V (https://www.elastic.co) | ||
* @license https://opensource.org/licenses/MIT MIT License | ||
* | ||
* Licensed to Elasticsearch B.V under one or more agreements. | ||
* Elasticsearch B.V licenses this file to you under the MIT License. | ||
* See the LICENSE file in the project root for more information. | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Elastic\EnterpriseSearch\EnterpriseSearch\Schema; | ||
|
||
/** | ||
* @generated This file is generated, please do not edit | ||
*/ | ||
class ListSearchEnginesResponse | ||
{ | ||
public MetaPage $meta; | ||
public array $results; | ||
|
||
|
||
/** | ||
* @param SearchEngine[] $results | ||
*/ | ||
public function __construct(MetaPage $meta, array $results) | ||
{ | ||
$this->meta = $meta; | ||
$this->results = $results; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?php | ||
|
||
/** | ||
* Elastic Enterprise Search | ||
* | ||
* @link https://github.com/elastic/enterprise-search-php | ||
* @copyright Copyright (c) Elasticsearch B.V (https://www.elastic.co) | ||
* @license https://opensource.org/licenses/MIT MIT License | ||
* | ||
* Licensed to Elasticsearch B.V under one or more agreements. | ||
* Elasticsearch B.V licenses this file to you under the MIT License. | ||
* See the LICENSE file in the project root for more information. | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Elastic\EnterpriseSearch\EnterpriseSearch\Schema; | ||
|
||
/** | ||
* @generated This file is generated, please do not edit | ||
*/ | ||
class MetaPage | ||
{ | ||
public Page $page; | ||
|
||
|
||
public function __construct(Page $page) | ||
{ | ||
$this->page = $page; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?php | ||
|
||
/** | ||
* Elastic Enterprise Search | ||
* | ||
* @link https://github.com/elastic/enterprise-search-php | ||
* @copyright Copyright (c) Elasticsearch B.V (https://www.elastic.co) | ||
* @license https://opensource.org/licenses/MIT MIT License | ||
* | ||
* Licensed to Elasticsearch B.V under one or more agreements. | ||
* Elasticsearch B.V licenses this file to you under the MIT License. | ||
* See the LICENSE file in the project root for more information. | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Elastic\EnterpriseSearch\EnterpriseSearch\Schema; | ||
|
||
/** | ||
* @generated This file is generated, please do not edit | ||
*/ | ||
class Page | ||
{ | ||
public int $current; | ||
public int $total_pages; | ||
public int $total_results; | ||
public int $size; | ||
|
||
|
||
public function __construct(int $current, int $total_pages, int $total_results, int $size) | ||
{ | ||
$this->current = $current; | ||
$this->total_pages = $total_pages; | ||
$this->total_results = $total_results; | ||
$this->size = $size; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?php | ||
|
||
/** | ||
* Elastic Enterprise Search | ||
* | ||
* @link https://github.com/elastic/enterprise-search-php | ||
* @copyright Copyright (c) Elasticsearch B.V (https://www.elastic.co) | ||
* @license https://opensource.org/licenses/MIT MIT License | ||
* | ||
* Licensed to Elasticsearch B.V under one or more agreements. | ||
* Elasticsearch B.V licenses this file to you under the MIT License. | ||
* See the LICENSE file in the project root for more information. | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Elastic\EnterpriseSearch\EnterpriseSearch\Schema; | ||
|
||
/** | ||
* @generated This file is generated, please do not edit | ||
*/ | ||
class SearchEngine | ||
{ | ||
public string $name; | ||
public int $document_count; | ||
public array $search_indices; | ||
|
||
|
||
/** | ||
* @param string[] $search_indices | ||
*/ | ||
public function __construct(string $name, int $document_count, array $search_indices) | ||
{ | ||
$this->name = $name; | ||
$this->document_count = $document_count; | ||
$this->search_indices = $search_indices; | ||
} | ||
} |