Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
zhichan
Commits
c37eace7
Commit
c37eace7
authored
Jun 24, 2020
by
xuxu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改尼斯大类匹配失败及名称重复的问题
parent
d01beb1c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
10 deletions
+9
-10
specialname/dao/__pycache__/tm_treasure_name_es.cpython-37.pyc
+0
-0
specialname/dao/tm_treasure_name_es.py
+7
-8
specialname/service/__pycache__/tm_treasure_name.cpython-37.pyc
+0
-0
specialname/service/tm_treasure_name.py
+2
-2
No files found.
specialname/dao/__pycache__/tm_treasure_name_es.cpython-37.pyc
View file @
c37eace7
No preview for this file type
specialname/dao/tm_treasure_name_es.py
View file @
c37eace7
...
...
@@ -37,10 +37,14 @@ class NameEs:
"wildcard"
:
{
"tm_name"
:
include_word_type
}
},
{
"terms"
:
{
"ncl_one"
:
ncl_one_list
}
}
],
"should"
:[]
],
}
},
"sort"
:
{
...
...
@@ -52,10 +56,5 @@ class NameEs:
}
}
for
ncl_one
in
ncl_one_list
:
query
[
'query'
][
'bool'
][
'should'
]
.
append
({
"match_phrase"
:
{
"ncl_one"
:
ncl_one
}
})
return
self
.
esBase
.
select
(
index
=
index
,
body
=
query
)
specialname/service/__pycache__/tm_treasure_name.cpython-37.pyc
View file @
c37eace7
No preview for this file type
specialname/service/tm_treasure_name.py
View file @
c37eace7
...
...
@@ -52,7 +52,7 @@ def name_treasure(result_json):
else
:
name_result_list
.
append
(
item
[
'tm_name'
])
return
name_
result_list
result_list
=
list
(
set
(
name_result_list
))
return
result_list
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