Coverage for mindsdb / integrations / handlers / solr_handler / connection_args.py: 0%

4 statements  

« prev     ^ index     » next       coverage.py v7.13.1, created at 2026-01-21 00:36 +0000

1from collections import OrderedDict 

2 

3from mindsdb.integrations.libs.const import HANDLER_CONNECTION_ARG_TYPE as ARG_TYPE 

4 

5 

6connection_args = OrderedDict( 

7 username={ 

8 'type': ARG_TYPE.STR, 

9 'description': 'The user name used to authenticate with the Solr server.' 

10 }, 

11 password={ 

12 'type': ARG_TYPE.PWD, 

13 'description': 'The password to authenticate the user with the Solr server.', 

14 'secret': True 

15 }, 

16 host={ 

17 'type': ARG_TYPE.STR, 

18 'description': 'The host name or IP address of the Solr server. NOTE: use \'127.0.0.1\' instead of \'localhost\' to connect to local server.' 

19 }, 

20 port={ 

21 'type': ARG_TYPE.INT, 

22 'description': 'The TCP/IP port of the Solr server. Must be an integer.' 

23 }, 

24 server_path={ 

25 'type': ARG_TYPE.STR, 

26 'description': 'The server path connecting with the Solr server. Defaults to solr when not provided.' 

27 }, 

28 collection={ 

29 'type': ARG_TYPE.STR, 

30 'description': 'The collection name to use for the query in the Solr server.' 

31 }, 

32 use_ssl={ 

33 'type': ARG_TYPE.BOOL, 

34 'description': 'The flag to set ssl for the query in the Solr server.Defaults to false.' 

35 } 

36) 

37 

38connection_args_example = OrderedDict( 

39 username="demo_user", 

40 password="demo_password", 

41 host="127.0.0.1", 

42 port=8981, 

43 server_path="solr", 

44 collection="gettingstarted", 

45 use_ssl=False, 

46)