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
7f816745
Commit
7f816745
authored
May 19, 2020
by
黄静
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hj
parent
74d1467e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
7 deletions
+7
-7
entprofile/service/__pycache__/label_connect.cpython-37.pyc
+0
-0
entprofile/service/__pycache__/select_es_result.cpython-37.pyc
+0
-0
entprofile/service/label_connect.py
+6
-6
entprofile/service/select_es_result.py
+1
-1
No files found.
entprofile/service/__pycache__/label_connect.cpython-37.pyc
View file @
7f816745
No preview for this file type
entprofile/service/__pycache__/select_es_result.cpython-37.pyc
View file @
7f816745
No preview for this file type
entprofile/service/label_connect.py
View file @
7f816745
...
...
@@ -2,12 +2,12 @@ from DBUtils.PooledDB import PooledDB
import
pymysql
,
json
from
flask
import
request
#
MYSQL_HOST = '47.95.76.74' # 外网地址
#
PORT = 3306 # 外网端口
#
USER = 'root'
#
PASSWORD = 'Gongsibao2018'
#
DB = 'ent_data'
#
pool = PooledDB(pymysql, 8, host=MYSQL_HOST, user=USER, passwd=PASSWORD, db=DB, port=PORT)
MYSQL_HOST
=
'47.95.76.74'
# 外网地址
PORT
=
3306
# 外网端口
USER
=
'root'
PASSWORD
=
'Gongsibao2018'
DB
=
'ent_data'
pool
=
PooledDB
(
pymysql
,
8
,
host
=
MYSQL_HOST
,
user
=
USER
,
passwd
=
PASSWORD
,
db
=
DB
,
port
=
PORT
)
"""检索类别英文名字"""
def
select_label
(
lable_type
):
...
...
entprofile/service/select_es_result.py
View file @
7f816745
...
...
@@ -224,7 +224,7 @@ class HX:
querybody
[
'query'
][
'bool'
][
'must'
]
.
append
(
dsl
)
print
(
'查询语法:'
,
querybody
)
searched
=
self
.
es
.
search
(
index
=
self
.
index_name
,
doc_type
=
self
.
index_type
,
body
=
querybody
,
request_timeout
=
1000
)
searched
=
self
.
es
.
search
(
index
=
self
.
index_name
,
doc_type
=
self
.
index_type
,
body
=
querybody
)
company_hx_list
=
[]
if
(
searched
[
"hits"
][
"total"
]
>
0
):
for
row
in
searched
[
"hits"
][
"hits"
]:
...
...
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