You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**About maven central ...** I've switched maven repositories a couple of times now. Jitpack and multiplatform just doesn't work. Of course I would have liked to get this on maven central. However, after repeated attempts to get that done, I've decided to not sacrifice more time on this. The (lack of) documentation, the Jira bureaucracy, the uninformative errors, the gradle plugin, etc. just doesn't add up to something that works for a multi module, multi platform project. I'm sure it can be done but I'm not taking more time out my schedule to find out.
71
-
72
-
If somebody decides to fix a proper, modern solution for hosting packages, I'll consider using it but I'm done with maven central for now. Google buckets work fine for hosting. So does ssh or any old web server. So does aws. It's just maven central that's a huge PITA.
73
-
74
71
## Maven
75
72
76
-
If you have maven based kotlin project targeting jvm and can't use kotlin multiplatform dependency, you would need to add jvm targeting artifacts.
73
+
If you have maven based kotlin project targeting jvm and can't use kotlin multiplatform dependency, you will need to **append '-jvm' to the artifacts**.
77
74
78
75
Add the `maven.tryformation.com` repository:
79
76
@@ -87,24 +84,24 @@ Add the `maven.tryformation.com` repository:
87
84
</repositories>
88
85
```
89
86
90
-
And then add dependencies to jvm targets:
87
+
And then add dependencies for jvm targets:
91
88
92
89
```xml
93
90
<dependencies>
94
91
<dependency>
95
92
<groupId>com.jillesvangurp</groupId>
96
93
<artifactId>search-client-jvm</artifactId>
97
-
<version>2.1.25</version>
94
+
<version>2.x.y</version>
98
95
</dependency>
99
96
<dependency>
100
97
<groupId>com.jillesvangurp</groupId>
101
98
<artifactId>search-dsls-jvm</artifactId>
102
-
<version>2.1.25</version>
99
+
<version>2.x.y</version>
103
100
</dependency>
104
101
<dependency>
105
102
<groupId>com.jillesvangurp</groupId>
106
103
<artifactId>json-dsl-jvm</artifactId>
107
-
<version>3.0.0</version>
104
+
<version>3.x.y</version>
108
105
</dependency>
109
106
</dependencies>
110
107
```
@@ -427,30 +424,36 @@ For additional details, refer to the build file.
427
424
428
425
## Compatibility
429
426
430
-
The integration tests on GitHub Actions use a **matrix build** that tests everything against Elasticsearch 7 & 8 and Opensearch 1 & 2.
427
+
The integration tests on GitHub Actions use a **matrix build** that tests everything against Elasticsearch 7.x, 8.x & 9.x and Opensearch 1.x, 2.x & 3.x.
431
428
432
429
It may work fine with earlier Elasticsearch versions as well. But we don't actively test this and the tests are known to not pass with Elasticsearch 6 due to some changes in the mapping dsl. You may be able to work around some of this, however.
433
430
434
-
There is an annotation that is used to restrict APIs when needed. E.g. `search-after`only works with Elasticsearch and and has the following annotation to indicate that:
431
+
There is an annotation that is used to restrict APIs when needed. E.g. `search-after`support was added in Opensearch 2.x but is missing in 1.x:
|`search-dsls`| DSLs for search and mappings based on `json-dsl`. |
474
+
|`search-client`| Multiplatform REST client for Elasticsearch 7.x, 8.x & 9.x and Opensearch 1.x, 2.x & 3.x. This is what you would want to use in your projects. |
475
+
|`docs`| Contains the code that generates the [manual](https://jillesvangurp.github.io/kt-search/manual/) and this readme.. |
473
476
474
477
The search client module is the main module of this library. I extracted the json-dsl module and `search-dsls` module with the intention of eventually moving these to separate libraries. Json-dsl is actually useful for pretty much any kind of json dialect and I have a few APIs in mind where I might like to use it. The choice to not impose kotlinx.serialization on json dsl also means that both that and the search dsl are very portable and only depend on the Kotlin standard library.
If you have maven based kotlin project targeting jvm and can't use kotlin multiplatform dependency, you would need to add jvm targeting artifacts.
26
+
If you have maven based kotlin project targeting jvm and can't use kotlin multiplatform dependency, you will need to **append '-jvm' to the artifacts**.
4
27
5
28
Add the `maven.tryformation.com` repository:
6
29
@@ -14,24 +37,24 @@ Add the `maven.tryformation.com` repository:
Copy file name to clipboardExpand all lines: docs/src/test/kotlin/documentation/projectreadme/readme-outro.md
+17-11
Original file line number
Diff line number
Diff line change
@@ -15,30 +15,36 @@ For additional details, refer to the build file.
15
15
16
16
## Compatibility
17
17
18
-
The integration tests on GitHub Actions use a **matrix build** that tests everything against Elasticsearch 7 & 8 and Opensearch 1 & 2.
18
+
The integration tests on GitHub Actions use a **matrix build** that tests everything against Elasticsearch 7.x, 8.x & 9.x and Opensearch 1.x, 2.x & 3.x.
19
19
20
20
It may work fine with earlier Elasticsearch versions as well. But we don't actively test this and the tests are known to not pass with Elasticsearch 6 due to some changes in the mapping dsl. You may be able to work around some of this, however.
21
21
22
-
There is an annotation that is used to restrict APIs when needed. E.g. `search-after`only works with Elasticsearch and and has the following annotation to indicate that:
22
+
There is an annotation that is used to restrict APIs when needed. E.g. `search-after`support was added in Opensearch 2.x but is missing in 1.x:
|`search-dsls`| DSLs for search and mappings based on `json-dsl`. |
65
+
|`search-client`| Multiplatform REST client for Elasticsearch 7.x, 8.x & 9.x and Opensearch 1.x, 2.x & 3.x. This is what you would want to use in your projects. |
66
+
|`docs`| Contains the code that generates the [manual](https://jillesvangurp.github.io/kt-search/manual/) and this readme.. |
61
67
62
68
The search client module is the main module of this library. I extracted the json-dsl module and `search-dsls` module with the intention of eventually moving these to separate libraries. Json-dsl is actually useful for pretty much any kind of json dialect and I have a few APIs in mind where I might like to use it. The choice to not impose kotlinx.serialization on json dsl also means that both that and the search dsl are very portable and only depend on the Kotlin standard library.
0 commit comments