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
915075c6
Commit
915075c6
authored
Oct 29, 2020
by
李小芳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update_answer
parent
294f0fca
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
es.py
search/utils/es.py
+3
-3
type_info.py
trans2es/type_info.py
+1
-1
No files found.
search/utils/es.py
View file @
915075c6
...
...
@@ -38,7 +38,7 @@ def get_es():
'sniff_on_start'
:
False
,
'sniff_on_connection_fail'
:
False
,
}
new_hosts
=
settings
.
ES
_V2
_HOSTS
new_hosts
=
settings
.
ES
6
_HOSTS
new_es
=
Es
(
hosts
=
new_hosts
,
**
init_args
)
return
new_es
...
...
@@ -47,7 +47,7 @@ def es_indices_analyze(doc_type, body, es):
es
=
get_es
()
index
=
es_index_adapt
(
index_prefix
=
settings
.
ES
_INDEX_PREFIX
,
index_prefix
=
settings
.
ES
6_HOSTS
,
doc_type
=
doc_type
,
rw
=
'read'
)
...
...
@@ -60,7 +60,7 @@ def get_talos_es():
'sniff_on_start'
:
False
,
'sniff_on_connection_fail'
:
False
,
}
talos_hosts
=
settings
.
TALOS_ES
_HOSTS
talos_hosts
=
settings
.
ES6
_HOSTS
talos_es
=
Es
(
hosts
=
talos_hosts
,
**
init_args
)
return
talos_es
...
...
trans2es/type_info.py
View file @
915075c6
...
...
@@ -198,7 +198,7 @@ class TypeInfo(object):
bulk_actions
.
append
({
'_op_type'
:
'index'
,
'_index'
:
index
,
'_type'
:
index_type
,
'_type'
:
"_doc"
,
'_id'
:
data
[
'id'
],
'_source'
:
data
,
})
...
...
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