Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
杨树贤
/
search_server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
b2a0eaeb
authored
Jun 23, 2020
by
mushishixian
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修改为模糊搜索
parent
fded7bcc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
service/bom_service.go
service/bom_service.go
View file @
b2a0eaeb
...
@@ -93,7 +93,7 @@ func Recommend(req *bom.RecommendRequest) (rsp *bom.ResponseData) {
...
@@ -93,7 +93,7 @@ func Recommend(req *bom.RecommendRequest) (rsp *bom.ResponseData) {
//获取需要请求的索引
//获取需要请求的索引
index
:=
getRecommendSearchIndex
(
req
)
index
:=
getRecommendSearchIndex
(
req
)
//获取es的请求参数
//获取es的请求参数
queryJson
:=
getRecommendSearchParams
(
tru
e
,
req
)
queryJson
:=
getRecommendSearchParams
(
fals
e
,
req
)
result
,
err
:=
es
.
CurlES
(
index
,
queryJson
)
result
,
err
:=
es
.
CurlES
(
index
,
queryJson
)
if
err
!=
nil
{
if
err
!=
nil
{
log
.
Error
(
err
)
log
.
Error
(
err
)
...
...
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