forked from venkatarun95/covid_reliable_articles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclient_info.py
40 lines (38 loc) · 984 Bytes
/
client_info.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
from typesense import Client
if False:
admin_client = Client({
'nodes': [{
'host':
'localhost', # For Typesense Cloud use xxx.a1.typesense.net
'port': '8108', # For Typesense Cloud use 443
'protocol': 'http' # For Typesense Cloud use https
}],
'api_key':
'xyz',
'connection_timeout_seconds':
2
})
search_client = admin_client
else:
admin_client = Client({
'nodes': [{
'host': 'v5mj1c7etlufikayp-1.a1.typesense.net',
'port': '443',
'protocol': 'https'
}],
'api_key':
'xyz',
'connection_timeout_seconds':
10
})
search_client = Client({
'nodes': [{
'host': 'v5mj1c7etlufikayp-1.a1.typesense.net',
'port': '443',
'protocol': 'https'
}],
'api_key':
'xyz',
'connection_timeout_seconds':
10
})