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 1717 coherence-image :
1818 - ghcr.io/oracle/coherence-ce
1919 coherenceVersion :
20+ - 22.06.12
2021 - 25.03.1
2122 runs-on : ${{ matrix.os }}
2223 steps :
Original file line number Diff line number Diff line change 2121 coherence-image :
2222 - ghcr.io/oracle/coherence-ce
2323 coherenceVersion :
24+ - 22.06.12
2425 - 25.03.1
2526 runs-on : ${{ matrix.os }}
2627 steps :
Original file line number Diff line number Diff line change @@ -231,6 +231,16 @@ async def do_run() -> None:
231231 # Create a new session to the Coherence server using the default host and
232232 # port i.e. localhost:1408
233233 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+
234244 # Create a NamedMap called movies with key of str and value of dict
235245 movie_db : NamedMap [str , dict ] = await session .get_map ("movies" )
236246 try :
You can’t perform that action at this time.
0 commit comments