Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
graces_es6
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
rank
graces_es6
Commits
a71573cb
Commit
a71573cb
authored
Nov 03, 2020
by
李小芳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新es的配置
parent
84a8aab3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
es.py
search/utils/es.py
+9
-0
type_info.py
trans2es/type_info.py
+2
-2
No files found.
search/utils/es.py
View file @
a71573cb
...
...
@@ -76,6 +76,15 @@ def get_talos_es6():
talos_es
=
Es
(
hosts
=
talos_hosts
,
http_auth
=
(
"elastic"
,
"gengmei!@#"
),
**
init_args
)
return
talos_es
def
get_talos_es7_service
():
init_args
=
{
'sniff_on_start'
:
False
,
'sniff_on_connection_fail'
:
False
,
}
talos_hosts
=
settings
.
TALOS_ES_HOSTS
talos_es
=
Es
(
hosts
=
talos_hosts
,
http_auth
=
(
"elastic"
,
"gengmei!@#"
),
**
init_args
)
return
talos_es
HIGHLIGHT_TAG
=
'ems'
...
...
trans2es/type_info.py
View file @
a71573cb
...
...
@@ -22,7 +22,7 @@ from api.models.ranklist import RankBoard
from
search.utils.es
import
get_es
,
get_talos_es
,
get_talos_es6
from
injection.utils.table_scan
import
ITableChunk
from
search.utils.es
import
es_index_adapt
from
search.utils.es
import
es_index_adapt
,
get_talos_es7_service
from
rpc.context
import
get_rpc_remote_invoker
import
functools
from
talos.models.topic
import
Problem
...
...
@@ -56,7 +56,7 @@ def get_talos_elasticsearch_instance():
def
get_talos_es6_instance
():
global
__es6
if
__es6
is
None
:
__es6
=
get_talos_es
6
()
__es6
=
get_talos_es
7_service
()
return
__es6
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment