Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
谢明辉
/
VVAS-Match
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 34af005f
authored
Jun 25, 2025
by
wenshuaiying
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
增加日志
1 parent
9beaf0aa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
src/main/java/com/viontech/match/config/ElasticsearchConfiguration.java
src/main/java/com/viontech/match/service/PersonService.java
src/main/java/com/viontech/match/config/ElasticsearchConfiguration.java
View file @
34af005
...
...
@@ -56,8 +56,8 @@ public class ElasticsearchConfiguration {
connectionManager
=
new
PoolingNHttpClientConnectionManager
(
new
DefaultConnectingIOReactor
(
ioReactorConfig
));
// 设置最大连接数
connectionManager
.
setMaxTotal
(
200
);
// 整个连接池的最大连接数
connectionManager
.
setDefaultMaxPerRoute
(
40
);
connectionManager
.
setMaxTotal
(
properties
.
getMaxConnTotal
()
);
// 整个连接池的最大连接数
connectionManager
.
setDefaultMaxPerRoute
(
properties
.
getMaxConnPerRoute
()
);
}
catch
(
IOReactorException
e
)
{
throw
new
RuntimeException
(
e
);
}
...
...
src/main/java/com/viontech/match/service/PersonService.java
View file @
34af005
...
...
@@ -596,6 +596,7 @@ public class PersonService {
List
<
Person
>
persons
=
new
ArrayList
<>();
// log.info("request:{}", JSON.tojsonS);
try
{
log
.
info
(
"人员匹配查es开始"
);
SearchResponse
<
SearchResultHit
>
search
=
client
.
search
(
searchRequest
,
SearchResultHit
.
class
);
if
(
agg
)
{
Map
aggregations
=
search
.
aggregations
();
...
...
@@ -611,7 +612,7 @@ public class PersonService {
// }
}
else
{
HitsMetadata
hits
=
search
.
hits
();
// log.info("match0:{}", hits.toString
());
log
.
info
(
"人员匹配, 耗时:{}"
,
search
.
took
());
List
<
Hit
<
SearchResultHit
>>
hits1
=
hits
.
hits
();
for
(
Hit
item
:
hits1
)
{
SearchResultHit
hit
=
(
SearchResultHit
)
item
.
source
();
...
...
@@ -639,7 +640,7 @@ public class PersonService {
}
}
}
catch
(
Exception
e
)
{
log
.
error
(
"match0 excepton"
,
e
.
getMessage
()
);
log
.
error
(
"match0 excepton"
,
e
);
}
return
persons
;
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment