File tree Expand file tree Collapse file tree 3 files changed +12
-0
lines changed Expand file tree Collapse file tree 3 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 17
17
coherence-image :
18
18
- ghcr.io/oracle/coherence-ce
19
19
coherenceVersion :
20
+ - 22.06.12
20
21
- 25.03.1
21
22
runs-on : ${{ matrix.os }}
22
23
steps :
Original file line number Diff line number Diff line change 21
21
coherence-image :
22
22
- ghcr.io/oracle/coherence-ce
23
23
coherenceVersion :
24
+ - 22.06.12
24
25
- 25.03.1
25
26
runs-on : ${{ matrix.os }}
26
27
steps :
Original file line number Diff line number Diff line change @@ -231,6 +231,16 @@ async def do_run() -> None:
231
231
# Create a new session to the Coherence server using the default host and
232
232
# port i.e. localhost:1408
233
233
session : Session = await Session .create ()
234
+ # Check if the example cmn be run against the server
235
+ if (session ._protocol_version == 1 ) and (
236
+ (session ._proxy_version > "24.09.2" ) or (session ._proxy_version > "15.0.0" )
237
+ ):
238
+ # Server supports vector search - continue on
239
+ pass
240
+ else :
241
+ # Server does not support vector search - exit out
242
+ return
243
+
234
244
# Create a NamedMap called movies with key of str and value of dict
235
245
movie_db : NamedMap [str , dict ] = await session .get_map ("movies" )
236
246
try :
You can’t perform that action at this time.
0 commit comments