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
8b828896
Commit
8b828896
authored
Aug 28, 2020
by
李小芳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
同步新的表
parent
f0780fc1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
5 deletions
+0
-5
es.py
libs/es.py
+0
-2
itemwiki_transfer.py
trans2es/utils/itemwiki_transfer.py
+0
-1
search_query.py
trans2es/utils/search_query.py
+0
-2
No files found.
libs/es.py
View file @
8b828896
...
...
@@ -198,8 +198,6 @@ class ESPerform(object):
if
not
batch_search
:
res
=
es_cli
.
search
(
index
=
official_index_name
,
doc_type
=
doc_type
,
body
=
query_body
,
from_
=
offset
,
size
=
size
)
logging
.
info
(
"duan add official_index_name res:
%
s"
%
res
)
if
is_suggest_request
:
return
res
else
:
...
...
trans2es/utils/itemwiki_transfer.py
View file @
8b828896
...
...
@@ -59,7 +59,6 @@ class ItemWikiTransfer(object):
result_dict
=
ESPerform
.
get_search_results
(
ESPerform
.
get_cli
(
settings
.
GM_ORI_ES_INFO_LIST
),
sub_index_name
=
"newwiki"
,
doc_type
=
"newwiki"
,
query_body
=
q
,
offset
=
0
,
size
=
0
)
print
(
"result_dict"
,
result_dict
)
doctor_results
=
result_dict
[
"total_count"
]
redis_key_prefix
=
"search_tips:tips_mapping_num"
...
...
trans2es/utils/search_query.py
View file @
8b828896
...
...
@@ -112,8 +112,6 @@ class SearchWord(object):
try
:
total_count
=
0
instance
.
name
=
instance
.
keyword
print
(
"-------"
)
print
(
instance
.
name
)
# 获取百科的
ItemWikiTransfer
.
get_wiki_data_name_mapping_results_to_redis
(
instance
)
...
...
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