Skip to content

Commit ab72700

Browse files
committed
update specifications for top hits aggregation, update to v 0.14.0
1 parent 0ca06f9 commit ab72700

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

bridge/src/test/scala/app/softnetwork/elastic/sql/SQLQuerySpec.scala

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2752,24 +2752,24 @@ class SQLQuerySpec extends AnyFlatSpec with Matchers {
27522752
val query = select.query
27532753
println(query)
27542754
query shouldBe
2755-
"""{
2755+
"""{
27562756
| "query": {
27572757
| "match_all": {}
27582758
| },
27592759
| "size": 0,
27602760
| "_source": false,
27612761
| "aggs": {
2762+
| "cnt": {
2763+
| "cardinality": {
2764+
| "field": "salary"
2765+
| }
2766+
| },
27622767
| "dept": {
27632768
| "terms": {
27642769
| "field": "department",
27652770
| "min_doc_count": 1
27662771
| },
27672772
| "aggs": {
2768-
| "cnt": {
2769-
| "cardinality": {
2770-
| "field": "salary"
2771-
| }
2772-
| },
27732773
| "first_salary": {
27742774
| "top_hits": {
27752775
| "size": 1,

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ ThisBuild / organization := "app.softnetwork"
1919

2020
name := "softclient4es"
2121

22-
ThisBuild / version := "0.13.1"
22+
ThisBuild / version := "0.14.0"
2323

2424
ThisBuild / scalaVersion := scala213
2525

es6/bridge/src/test/scala/app/softnetwork/elastic/sql/SQLQuerySpec.scala

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2759,17 +2759,17 @@ class SQLQuerySpec extends AnyFlatSpec with Matchers {
27592759
| "size": 0,
27602760
| "_source": false,
27612761
| "aggs": {
2762+
| "cnt": {
2763+
| "cardinality": {
2764+
| "field": "salary"
2765+
| }
2766+
| },
27622767
| "dept": {
27632768
| "terms": {
27642769
| "field": "department",
27652770
| "min_doc_count": 1
27662771
| },
27672772
| "aggs": {
2768-
| "cnt": {
2769-
| "cardinality": {
2770-
| "field": "salary"
2771-
| }
2772-
| },
27732773
| "first_salary": {
27742774
| "top_hits": {
27752775
| "size": 1,

0 commit comments

Comments
 (0)