Skip to content

Commit

Permalink
add support for promotions, redirects + batch update records (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkaho authored Jan 11, 2022
1 parent 0cdd9f1 commit b1fc9f2
Show file tree
Hide file tree
Showing 151 changed files with 17,908 additions and 8,572 deletions.
52 changes: 52 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
.gitignore
README.md
api/openapi.yaml
docs/ActivePromotion.md
docs/BatchCreateSchemaFieldsRequest.md
docs/BatchCreateSchemaFieldsResponse.md
docs/BatchCreateSchemaFieldsResponseError.md
docs/BatchUpdateRecordsRequest.md
docs/BatchUpdateRecordsResponse.md
docs/BatchUpdateRecordsResponseError.md
docs/BatchUpdateRecordsResponseRecord.md
docs/BatchUpsertRecordsRequest.md
docs/BatchUpsertRecordsRequestPipeline.md
docs/BatchUpsertRecordsResponse.md
Expand All @@ -24,14 +29,25 @@ docs/GetRecordRequest.md
docs/ListCollectionsResponse.md
docs/ListPipelinesRequestView.md
docs/ListPipelinesResponse.md
docs/ListPromotionsResponse.md
docs/ListRedirectsResponse.md
docs/ListSchemaFieldsResponse.md
docs/PercentileDataPoint.md
docs/Pipeline.md
docs/PipelineStep.md
docs/PipelineStepParamBinding.md
docs/PipelineType.md
docs/PipelinesApi.md
docs/Promotion.md
docs/PromotionCategory.md
docs/PromotionExclusion.md
docs/PromotionFilterBoost.md
docs/PromotionFilterCondition.md
docs/PromotionPin.md
docs/PromotionRangeBoost.md
docs/PromotionsApi.md
docs/ProtobufAny.md
docs/ProtobufFieldMask.md
docs/ProtobufNullValue.md
docs/QueryAggregateResult.md
docs/QueryAggregateResultAnalysis.md
Expand All @@ -53,6 +69,9 @@ docs/QueryResultTokenClick.md
docs/QueryResultTokenPosNeg.md
docs/RecordKey.md
docs/RecordsApi.md
docs/Redirect.md
docs/RedirectResult.md
docs/RedirectsApi.md
docs/SchemaApi.md
docs/SchemaField.md
docs/SchemaFieldMode.md
Expand Down Expand Up @@ -87,15 +106,22 @@ src/main/java/com/sajari/client/StringUtil.java
src/main/java/com/sajari/client/api/CollectionsApi.java
src/main/java/com/sajari/client/api/EventsApi.java
src/main/java/com/sajari/client/api/PipelinesApi.java
src/main/java/com/sajari/client/api/PromotionsApi.java
src/main/java/com/sajari/client/api/RecordsApi.java
src/main/java/com/sajari/client/api/RedirectsApi.java
src/main/java/com/sajari/client/api/SchemaApi.java
src/main/java/com/sajari/client/auth/ApiKeyAuth.java
src/main/java/com/sajari/client/auth/Authentication.java
src/main/java/com/sajari/client/auth/HttpBasicAuth.java
src/main/java/com/sajari/client/auth/HttpBearerAuth.java
src/main/java/com/sajari/client/model/ActivePromotion.java
src/main/java/com/sajari/client/model/BatchCreateSchemaFieldsRequest.java
src/main/java/com/sajari/client/model/BatchCreateSchemaFieldsResponse.java
src/main/java/com/sajari/client/model/BatchCreateSchemaFieldsResponseError.java
src/main/java/com/sajari/client/model/BatchUpdateRecordsRequest.java
src/main/java/com/sajari/client/model/BatchUpdateRecordsResponse.java
src/main/java/com/sajari/client/model/BatchUpdateRecordsResponseError.java
src/main/java/com/sajari/client/model/BatchUpdateRecordsResponseRecord.java
src/main/java/com/sajari/client/model/BatchUpsertRecordsRequest.java
src/main/java/com/sajari/client/model/BatchUpsertRecordsRequestPipeline.java
src/main/java/com/sajari/client/model/BatchUpsertRecordsResponse.java
Expand All @@ -114,13 +140,23 @@ src/main/java/com/sajari/client/model/GetRecordRequest.java
src/main/java/com/sajari/client/model/ListCollectionsResponse.java
src/main/java/com/sajari/client/model/ListPipelinesRequestView.java
src/main/java/com/sajari/client/model/ListPipelinesResponse.java
src/main/java/com/sajari/client/model/ListPromotionsResponse.java
src/main/java/com/sajari/client/model/ListRedirectsResponse.java
src/main/java/com/sajari/client/model/ListSchemaFieldsResponse.java
src/main/java/com/sajari/client/model/PercentileDataPoint.java
src/main/java/com/sajari/client/model/Pipeline.java
src/main/java/com/sajari/client/model/PipelineStep.java
src/main/java/com/sajari/client/model/PipelineStepParamBinding.java
src/main/java/com/sajari/client/model/PipelineType.java
src/main/java/com/sajari/client/model/Promotion.java
src/main/java/com/sajari/client/model/PromotionCategory.java
src/main/java/com/sajari/client/model/PromotionExclusion.java
src/main/java/com/sajari/client/model/PromotionFilterBoost.java
src/main/java/com/sajari/client/model/PromotionFilterCondition.java
src/main/java/com/sajari/client/model/PromotionPin.java
src/main/java/com/sajari/client/model/PromotionRangeBoost.java
src/main/java/com/sajari/client/model/ProtobufAny.java
src/main/java/com/sajari/client/model/ProtobufFieldMask.java
src/main/java/com/sajari/client/model/ProtobufNullValue.java
src/main/java/com/sajari/client/model/QueryAggregateResult.java
src/main/java/com/sajari/client/model/QueryAggregateResultAnalysis.java
Expand All @@ -141,6 +177,8 @@ src/main/java/com/sajari/client/model/QueryResultToken.java
src/main/java/com/sajari/client/model/QueryResultTokenClick.java
src/main/java/com/sajari/client/model/QueryResultTokenPosNeg.java
src/main/java/com/sajari/client/model/RecordKey.java
src/main/java/com/sajari/client/model/Redirect.java
src/main/java/com/sajari/client/model/RedirectResult.java
src/main/java/com/sajari/client/model/SchemaField.java
src/main/java/com/sajari/client/model/SchemaFieldMode.java
src/main/java/com/sajari/client/model/SchemaFieldType.java
Expand All @@ -152,3 +190,17 @@ src/main/java/com/sajari/client/model/UpdateRecordRequest.java
src/main/java/com/sajari/client/model/UpsertRecordRequest.java
src/main/java/com/sajari/client/model/UpsertRecordRequestPipeline.java
src/main/java/com/sajari/client/model/UpsertRecordResponse.java
src/test/java/com/sajari/client/api/PromotionsApiTest.java
src/test/java/com/sajari/client/api/RedirectsApiTest.java
src/test/java/com/sajari/client/model/BatchUpdateRecordsRequestTest.java
src/test/java/com/sajari/client/model/BatchUpdateRecordsResponseErrorTest.java
src/test/java/com/sajari/client/model/BatchUpdateRecordsResponseRecordTest.java
src/test/java/com/sajari/client/model/BatchUpdateRecordsResponseTest.java
src/test/java/com/sajari/client/model/ListPromotionsResponseTest.java
src/test/java/com/sajari/client/model/ListRedirectsResponseTest.java
src/test/java/com/sajari/client/model/PromotionCategoryTest.java
src/test/java/com/sajari/client/model/PromotionFilterBoostTest.java
src/test/java/com/sajari/client/model/PromotionFilterConditionTest.java
src/test/java/com/sajari/client/model/PromotionRangeBoostTest.java
src/test/java/com/sajari/client/model/PromotionTest.java
src/test/java/com/sajari/client/model/ProtobufFieldMaskTest.java
2 changes: 1 addition & 1 deletion .openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5.3.0
5.3.1
46 changes: 37 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# sdk-java-client

Sajari API
Search.io API

- API version: v4

Sajari is a smart, highly-configurable, real-time search service that enables thousands of businesses worldwide to provide amazing search experiences on their websites, stores, and applications.
Search.io offers a search and discovery service with Neuralsearch®, the world's first instant AI search technology. Businesses of all sizes use Search.io to build site search and discovery solutions that maximize e-commerce revenue, optimize on-site customer experience, and scale their online presence.

For more information, please visit [https://www.sajari.com/company/contact](https://www.sajari.com/company/contact)
For more information, please visit [https://www.search.io/company/contact](https://www.search.io/company/contact)

*Automatically generated by the [OpenAPI Generator](https://openapi-generator.tech)*

Expand Down Expand Up @@ -41,7 +41,7 @@ Add this dependency to your project's POM:
<dependency>
<groupId>com.sajari</groupId>
<artifactId>sdk-java-client</artifactId>
<version>4.1.0</version>
<version>4.3.0</version>
<scope>compile</scope>
</dependency>
```
Expand All @@ -51,7 +51,7 @@ Add this dependency to your project's POM:
Add this dependency to your project's build file:

```groovy
compile "com.sajari:sdk-java-client:4.1.0"
compile "com.sajari:sdk-java-client:4.3.0"
```

### Others
Expand All @@ -64,7 +64,7 @@ mvn clean package

Then manually install the following JARs:

- `target/sdk-java-client-4.1.0.jar`
- `target/sdk-java-client-4.3.0.jar`
- `target/lib/*.jar`

## Getting Started
Expand All @@ -83,7 +83,7 @@ Please follow the [installation](#installation) instruction and execute the foll
public static void main(String[] args) {

ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api-gateway.sajari.com");
defaultClient.setBasePath("https://api.search.io");

// Configure HTTP basic authorization: BasicAuth
HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
Expand Down Expand Up @@ -111,7 +111,7 @@ Please follow the [installation](#installation) instruction and execute the foll

## Documentation for API Endpoints

All URIs are relative to *https://api-gateway.sajari.com*
All URIs are relative to *https://api.search.io*

Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
Expand All @@ -132,21 +132,37 @@ Class | Method | HTTP request | Description
*PipelinesApi* | [**listPipelines**](docs/PipelinesApi.md#listPipelines) | **GET** /v4/collections/{collection_id}/pipelines | List pipelines
*PipelinesApi* | [**setDefaultPipeline**](docs/PipelinesApi.md#setDefaultPipeline) | **POST** /v4/collections/{collection_id}:setDefaultPipeline | Set default pipeline
*PipelinesApi* | [**setDefaultVersion**](docs/PipelinesApi.md#setDefaultVersion) | **POST** /v4/collections/{collection_id}/pipelines/{type}/{name}:setDefaultVersion | Set default pipeline version
*PromotionsApi* | [**createPromotion**](docs/PromotionsApi.md#createPromotion) | **POST** /v4/collections/{collection_id}/promotions | Create promotion
*PromotionsApi* | [**deletePromotion**](docs/PromotionsApi.md#deletePromotion) | **DELETE** /v4/collections/{collection_id}/promotions/{promotion_id} | Delete promotion
*PromotionsApi* | [**getPromotion**](docs/PromotionsApi.md#getPromotion) | **GET** /v4/collections/{collection_id}/promotions/{promotion_id} | Get promotion
*PromotionsApi* | [**listPromotions**](docs/PromotionsApi.md#listPromotions) | **GET** /v4/collections/{collection_id}/promotions | List promotions
*PromotionsApi* | [**updatePromotion**](docs/PromotionsApi.md#updatePromotion) | **PATCH** /v4/collections/{collection_id}/promotions/{promotion_id} | Update promotion
*RecordsApi* | [**batchUpdateRecords**](docs/RecordsApi.md#batchUpdateRecords) | **POST** /v4/collections/{collection_id}/records:batchUpdate | Batch update records
*RecordsApi* | [**batchUpsertRecords**](docs/RecordsApi.md#batchUpsertRecords) | **POST** /v4/collections/{collection_id}/records:batchUpsert | Batch upsert records
*RecordsApi* | [**deleteRecord**](docs/RecordsApi.md#deleteRecord) | **POST** /v4/collections/{collection_id}/records:delete | Delete record
*RecordsApi* | [**getRecord**](docs/RecordsApi.md#getRecord) | **POST** /v4/collections/{collection_id}/records:get | Get record
*RecordsApi* | [**updateRecord**](docs/RecordsApi.md#updateRecord) | **POST** /v4/collections/{collection_id}/records:update | Update record
*RecordsApi* | [**upsertRecord**](docs/RecordsApi.md#upsertRecord) | **POST** /v4/collections/{collection_id}/records:upsert | Upsert record
*RedirectsApi* | [**createRedirect**](docs/RedirectsApi.md#createRedirect) | **POST** /v4/collections/{collection_id}/redirects | Create redirect
*RedirectsApi* | [**deleteRedirect**](docs/RedirectsApi.md#deleteRedirect) | **DELETE** /v4/collections/{collection_id}/redirects/{redirect_id} | Delete redirect
*RedirectsApi* | [**getRedirect**](docs/RedirectsApi.md#getRedirect) | **GET** /v4/collections/{collection_id}/redirects/{redirect_id} | Get redirect
*RedirectsApi* | [**listRedirects**](docs/RedirectsApi.md#listRedirects) | **GET** /v4/collections/{collection_id}/redirects | List redirects
*RedirectsApi* | [**updateRedirect**](docs/RedirectsApi.md#updateRedirect) | **PATCH** /v4/collections/{collection_id}/redirects/{redirect_id} | Update redirect
*SchemaApi* | [**batchCreateSchemaFields**](docs/SchemaApi.md#batchCreateSchemaFields) | **POST** /v4/collections/{collection_id}/schemaFields:batchCreate | Batch create schema fields
*SchemaApi* | [**createSchemaField**](docs/SchemaApi.md#createSchemaField) | **POST** /v4/collections/{collection_id}/schemaFields | Create schema field
*SchemaApi* | [**listSchemaFields**](docs/SchemaApi.md#listSchemaFields) | **GET** /v4/collections/{collection_id}/schemaFields | List schema fields


## Documentation for Models

- [ActivePromotion](docs/ActivePromotion.md)
- [BatchCreateSchemaFieldsRequest](docs/BatchCreateSchemaFieldsRequest.md)
- [BatchCreateSchemaFieldsResponse](docs/BatchCreateSchemaFieldsResponse.md)
- [BatchCreateSchemaFieldsResponseError](docs/BatchCreateSchemaFieldsResponseError.md)
- [BatchUpdateRecordsRequest](docs/BatchUpdateRecordsRequest.md)
- [BatchUpdateRecordsResponse](docs/BatchUpdateRecordsResponse.md)
- [BatchUpdateRecordsResponseError](docs/BatchUpdateRecordsResponseError.md)
- [BatchUpdateRecordsResponseRecord](docs/BatchUpdateRecordsResponseRecord.md)
- [BatchUpsertRecordsRequest](docs/BatchUpsertRecordsRequest.md)
- [BatchUpsertRecordsRequestPipeline](docs/BatchUpsertRecordsRequestPipeline.md)
- [BatchUpsertRecordsResponse](docs/BatchUpsertRecordsResponse.md)
Expand All @@ -165,13 +181,23 @@ Class | Method | HTTP request | Description
- [ListCollectionsResponse](docs/ListCollectionsResponse.md)
- [ListPipelinesRequestView](docs/ListPipelinesRequestView.md)
- [ListPipelinesResponse](docs/ListPipelinesResponse.md)
- [ListPromotionsResponse](docs/ListPromotionsResponse.md)
- [ListRedirectsResponse](docs/ListRedirectsResponse.md)
- [ListSchemaFieldsResponse](docs/ListSchemaFieldsResponse.md)
- [PercentileDataPoint](docs/PercentileDataPoint.md)
- [Pipeline](docs/Pipeline.md)
- [PipelineStep](docs/PipelineStep.md)
- [PipelineStepParamBinding](docs/PipelineStepParamBinding.md)
- [PipelineType](docs/PipelineType.md)
- [Promotion](docs/Promotion.md)
- [PromotionCategory](docs/PromotionCategory.md)
- [PromotionExclusion](docs/PromotionExclusion.md)
- [PromotionFilterBoost](docs/PromotionFilterBoost.md)
- [PromotionFilterCondition](docs/PromotionFilterCondition.md)
- [PromotionPin](docs/PromotionPin.md)
- [PromotionRangeBoost](docs/PromotionRangeBoost.md)
- [ProtobufAny](docs/ProtobufAny.md)
- [ProtobufFieldMask](docs/ProtobufFieldMask.md)
- [ProtobufNullValue](docs/ProtobufNullValue.md)
- [QueryAggregateResult](docs/QueryAggregateResult.md)
- [QueryAggregateResultAnalysis](docs/QueryAggregateResultAnalysis.md)
Expand All @@ -192,6 +218,8 @@ Class | Method | HTTP request | Description
- [QueryResultTokenClick](docs/QueryResultTokenClick.md)
- [QueryResultTokenPosNeg](docs/QueryResultTokenPosNeg.md)
- [RecordKey](docs/RecordKey.md)
- [Redirect](docs/Redirect.md)
- [RedirectResult](docs/RedirectResult.md)
- [SchemaField](docs/SchemaField.md)
- [SchemaFieldMode](docs/SchemaFieldMode.md)
- [SchemaFieldType](docs/SchemaFieldType.md)
Expand Down Expand Up @@ -220,4 +248,4 @@ It's recommended to create an instance of `ApiClient` per thread in a multithrea

## Author

support@sajari.com
support@search.io
Loading

0 comments on commit b1fc9f2

Please sign in to comment.