Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
search_tips
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
search_tips
Commits
1ff78467
Commit
1ff78467
authored
Jun 10, 2019
by
段英荣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify
parent
a5f6b6aa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
es.py
libs/es.py
+1
-1
suggest.json
trans2es/mapping/suggest.json
+2
-0
No files found.
libs/es.py
View file @
1ff78467
...
@@ -143,7 +143,7 @@ class ESPerform(object):
...
@@ -143,7 +143,7 @@ class ESPerform(object):
try
:
try
:
assert
(
es_cli
is
not
None
)
assert
(
es_cli
is
not
None
)
official_index_name
=
cls
.
get_official_index_name
(
sub_index_name
)
official_index_name
=
cls
.
get_official_index_name
(
sub_index_name
,
"write"
)
index_exists
=
es_cli
.
indices
.
exists
(
official_index_name
)
index_exists
=
es_cli
.
indices
.
exists
(
official_index_name
)
if
not
index_exists
:
if
not
index_exists
:
if
not
auto_create_index
:
if
not
auto_create_index
:
...
...
trans2es/mapping/suggest.json
View file @
1ff78467
...
@@ -3,6 +3,8 @@
...
@@ -3,6 +3,8 @@
"properties"
:
{
"properties"
:
{
"id"
:{
"type"
:
"text"
},
"id"
:{
"type"
:
"text"
},
"suggest"
:{
"suggest"
:{
"analyzer"
:
"keyword"
,
"search_analyzer"
:
"keyword"
,
"type"
:
"completion"
,
"type"
:
"completion"
,
"contexts"
:[
"contexts"
:[
{
{
...
...
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