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
b7bd4967
Commit
b7bd4967
authored
Aug 16, 2019
by
lixiaofang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
not result
parent
3f69a021
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
7 deletions
+0
-7
auto_tips.py
search/utils/auto_tips.py
+0
-7
No files found.
search/utils/auto_tips.py
View file @
b7bd4967
...
...
@@ -196,15 +196,8 @@ def get_suggest_tips(query, lat, lng, offset=0, size=50):
"offline_score"
:
0
,
"type_flag"
:
get_tips_word_type
(
ori_name
),
"highlight_name"
:
highlight_name
,
"describe"
:
""
})
logging
.
info
(
"get query_ret_list:
%
s"
%
query_ret_list
)
logging
.
info
(
"get wordresemble_ret_list:
%
s"
%
wordresemble_ret_list
)
ret_list
.
extend
(
query_ret_list
)
ret_list
.
extend
(
wordresemble_ret_list
)
logging
.
info
(
"get ret_list:
%
s"
%
ret_list
)
if
len
(
ret_list
)
>=
50
:
return
ret_list
[
0
:
50
]
...
...
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