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
5d74c974
authored
Dec 24, 2020
by
huangchengyi
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge branch 'master' into dev
parents
e98ab08a
4edd7d85
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletions
doc/test/time1.go
service/query/parity_query.go
doc/test/time1.go
View file @
5d74c974
...
...
@@ -9,7 +9,8 @@ import (
)
func
emptySuccessResponse
(
c
*
gin
.
Context
)
{
time
.
Sleep
(
2
*
time
.
Second
)
i
:=
2
time
.
Sleep
(
i
*
time
.
Second
)
c
.
String
(
http
.
StatusOK
,
""
)
}
func
errorResponse
(
c
*
gin
.
Context
)
{
...
...
service/query/parity_query.go
View file @
5d74c974
...
...
@@ -21,6 +21,7 @@ func GetParityQuery(ctx *gin.Context,target_goods_name string,target_goods_type
goodsSlice
:=
php2go
.
Explode
(
"€"
,
target_goods_name
);
for
_
,
goods_name
:=
range
goodsSlice
{
goods_name
=
common
.
DrawLetterNum
(
goods_name
);
if
target_goods_type
==
1
{
//精确匹配
subQuery
.
Should
(
elastic
.
NewTermQuery
(
"auto_goods_name.raw"
,
goods_name
))
}
else
{
...
...
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