Skip to content

Commit

Permalink
update version to 3.4.6
Browse files Browse the repository at this point in the history
  • Loading branch information
mdavis95 committed Oct 21, 2023
1 parent 60156a3 commit 6d49b64
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions _posts/2022-6-13-java.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ repositories {


dependencies {
implementation 'io.zulia:zulia-client:3.1.0'
implementation 'io.zulia:zulia-client:3.4.6'
implementation 'org.mongodb:mongodb-driver-sync:4.9.1'
}
```
Expand All @@ -35,7 +35,7 @@ dependencies {
<dependency>
<groupId>io.zulia</groupId>
<artifactId>zulia-client</artifactId>
<version>3.1.0</version>
<version>3.4.6</version>
</dependency>
<dependency>
<groupId>org.mongodb</groupId>
Expand Down Expand Up @@ -840,19 +840,19 @@ System.out.println(pyFieldStat.getValueCount()); // count of total number of val
### Numeric Stat with Percentiles
```Groovy
List<Double> percentiles = List.of(
0.0, // 0th percentile (min) - can be retrieved without percentiles
0.25, // 25th percentile
0.50, // median
0.75, // 75th percentile
1.0 // 100th percentile (max) - can be retrieved without percentiles
0.0, // 0th percentile (min) - can be retrieved without percentiles
0.25, // 25th percentile
0.50, // median
0.75, // 75th percentile
1.0 // 100th percentile (max) - can be retrieved without percentiles
);
Search search = new Search("myIndexName");
// Get the requested percentiles within 1% of their true value
search.addStat(new NumericStat("pubYear").setPercentiles(percentiles).setPercentilePrecision(0.01));
SearchResult searchResult = zuliaWorkPool.search(search);
for (ZuliaQuery.Percentile percentile : searchResult.getNumericFieldStat("pubYear").getPercentilesList()) {
System.out.println(percentile.getPoint() + " -> " + percentile.getValue());
System.out.println(percentile.getPoint() + " -> " + percentile.getValue());
}
```

Expand Down

0 comments on commit 6d49b64

Please sign in to comment.