Skip to content

Commit

Permalink
chore: release 4.0.0-beta.23
Browse files Browse the repository at this point in the history
Co-authored-by: algolia-bot <[email protected]>
Co-authored-by: Clément Vannicatte <[email protected]>
  • Loading branch information
algolia-bot and shortcuts committed Feb 29, 2024
1 parent c47ce9c commit df37df4
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## [4.0.0-beta.23](https://github.com/algolia/algoliasearch-client-java/compare/4.0.0-beta.22...4.0.0-beta.23)

- [a138c2fef](https://github.com/algolia/api-clients-automation/commit/a138c2fef) fix(specs): add `queryID` to search response ([#2801](https://github.com/algolia/api-clients-automation/pull/2801)) by [@aallam](https://github.com/aallam/)
- [6f0b00ead](https://github.com/algolia/api-clients-automation/commit/6f0b00ead) chore(specs): remove JSON specs and new worlds logic ([#2794](https://github.com/algolia/api-clients-automation/pull/2794)) by [@shortcuts](https://github.com/shortcuts/)

## [4.0.0-beta.22](https://github.com/algolia/algoliasearch-client-java/compare/4.0.0-beta.21...4.0.0-beta.22)

- [d48e2f624](https://github.com/algolia/api-clients-automation/commit/d48e2f624) fix(specs): add missing attributes for CT Source update ([#2792](https://github.com/algolia/api-clients-automation/pull/2792)) by [@damcou](https://github.com/damcou/)
Expand Down
2 changes: 1 addition & 1 deletion algoliasearch/src/main/java/com/algolia/BuildConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ private BuildConfig() {
// Empty.
}

public static final String VERSION = "4.0.0-beta.22";
public static final String VERSION = "4.0.0-beta.23";
}
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ public class BaseSearchResponse {
@JsonProperty("userData")
private Object userData;

@JsonProperty("queryID")
private String queryID;

private Map<String, Object> additionalProperties = new HashMap<>();

@JsonAnyGetter
Expand Down Expand Up @@ -451,6 +454,20 @@ public Object getUserData() {
return userData;
}

public BaseSearchResponse setQueryID(String queryID) {
this.queryID = queryID;
return this;
}

/**
* Unique identifier for the query. This is used for [click
* analytics](https://www.algolia.com/doc/guides/analytics/click-analytics/).
*/
@javax.annotation.Nullable
public String getQueryID() {
return queryID;
}

@Override
public boolean equals(Object o) {
if (this == o) {
Expand Down Expand Up @@ -488,6 +505,7 @@ public boolean equals(Object o) {
Objects.equals(this.serverTimeMS, baseSearchResponse.serverTimeMS) &&
Objects.equals(this.serverUsed, baseSearchResponse.serverUsed) &&
Objects.equals(this.userData, baseSearchResponse.userData) &&
Objects.equals(this.queryID, baseSearchResponse.queryID) &&
super.equals(o)
);
}
Expand Down Expand Up @@ -522,6 +540,7 @@ public int hashCode() {
serverTimeMS,
serverUsed,
userData,
queryID,
super.hashCode()
);
}
Expand Down Expand Up @@ -558,6 +577,7 @@ public String toString() {
sb.append(" serverTimeMS: ").append(toIndentedString(serverTimeMS)).append("\n");
sb.append(" serverUsed: ").append(toIndentedString(serverUsed)).append("\n");
sb.append(" userData: ").append(toIndentedString(userData)).append("\n");
sb.append(" queryID: ").append(toIndentedString(queryID)).append("\n");
sb.append("}");
return sb.toString();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ public class RecommendationsResults {
@JsonProperty("userData")
private Object userData;

@JsonProperty("queryID")
private String queryID;

@JsonProperty("hits")
private List<RecommendationsHit> hits = new ArrayList<>();

Expand Down Expand Up @@ -449,6 +452,20 @@ public Object getUserData() {
return userData;
}

public RecommendationsResults setQueryID(String queryID) {
this.queryID = queryID;
return this;
}

/**
* Unique identifier for the query. This is used for [click
* analytics](https://www.algolia.com/doc/guides/analytics/click-analytics/).
*/
@javax.annotation.Nullable
public String getQueryID() {
return queryID;
}

public RecommendationsResults setHits(List<RecommendationsHit> hits) {
this.hits = hits;
return this;
Expand Down Expand Up @@ -524,6 +541,7 @@ public boolean equals(Object o) {
Objects.equals(this.serverTimeMS, recommendationsResults.serverTimeMS) &&
Objects.equals(this.serverUsed, recommendationsResults.serverUsed) &&
Objects.equals(this.userData, recommendationsResults.userData) &&
Objects.equals(this.queryID, recommendationsResults.queryID) &&
Objects.equals(this.hits, recommendationsResults.hits) &&
Objects.equals(this.query, recommendationsResults.query) &&
Objects.equals(this.params, recommendationsResults.params)
Expand Down Expand Up @@ -560,6 +578,7 @@ public int hashCode() {
serverTimeMS,
serverUsed,
userData,
queryID,
hits,
query,
params
Expand Down Expand Up @@ -597,6 +616,7 @@ public String toString() {
sb.append(" serverTimeMS: ").append(toIndentedString(serverTimeMS)).append("\n");
sb.append(" serverUsed: ").append(toIndentedString(serverUsed)).append("\n");
sb.append(" userData: ").append(toIndentedString(userData)).append("\n");
sb.append(" queryID: ").append(toIndentedString(queryID)).append("\n");
sb.append(" hits: ").append(toIndentedString(hits)).append("\n");
sb.append(" query: ").append(toIndentedString(query)).append("\n");
sb.append(" params: ").append(toIndentedString(params)).append("\n");
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
GROUP=com.algolia
VERSION_NAME=4.0.0-beta.22
VERSION_NAME=4.0.0-beta.23

SONATYPE_HOST=DEFAULT
RELEASE_SIGNING_ENABLED=true
Expand Down

0 comments on commit df37df4

Please sign in to comment.