Skip to content

Commit

Permalink
add box_type in response
Browse files Browse the repository at this point in the history
  • Loading branch information
thehung111 committed May 19, 2023
1 parent 9af4092 commit 751d879
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<groupId>com.visenze</groupId>
<artifactId>visearch-java-sdk</artifactId>
<name>ViSearch Java SDK</name>
<version>1.13.5</version>
<version>1.13.6</version>
<packaging>jar</packaging>
<url>https://github.com/visenze/visearch-sdk-java</url>
<description>ViSearch Java SDK</description>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ public class ObjectProductResult {
@JsonProperty("box")
private List<Integer> box;

@JsonProperty("box_type")
private String boxType;

@JsonProperty("attributes")
public Map<String, String> attributes;

Expand Down Expand Up @@ -63,6 +66,18 @@ public class ObjectProductResult {

public List<Integer> getBox() { return box; }

public void setBox(List<Integer> box) {
this.box = box;
}

public String getBoxType() {
return boxType;
}

public void setBoxType(String boxType) {
this.boxType = boxType;
}

public Map<String,String> getAttributes() { return attributes; }

public Integer getTotal() { return total; }
Expand Down
12 changes: 12 additions & 0 deletions src/main/java/com/visenze/visearch/ObjectSearchResult.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ public class ObjectSearchResult {
private Float score;
private Float rerankScore;
private List<Integer> box;

@JsonProperty("box_type")
private String boxType;

private Map<String, List<String>> attributes;
private Map<String, List<String>> attributesList;
private int total;
Expand Down Expand Up @@ -48,6 +52,10 @@ public List<Integer> getBox() {
return box;
}

public String getBoxType() {
return boxType;
}

public Map<String, List<String>> getAttributes() {
return attributes;
}
Expand Down Expand Up @@ -84,6 +92,10 @@ public void setBox(List<Integer> box) {
this.box = box;
}

public void setBoxType(String boxType) {
this.boxType = boxType;
}

public void setAttributes(Map<String, List<String>> attributes) {
this.attributes = attributes;
}
Expand Down

0 comments on commit 751d879

Please sign in to comment.