Skip to content

Commit

Permalink
!356 fix & improve
Browse files Browse the repository at this point in the history
Merge pull request !356 from OceansDeep/pg
  • Loading branch information
OceansDeep authored and gitee-org committed Sep 14, 2024
2 parents 2e8c40b + 30d6ab6 commit e34b417
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ private Token checkMemberStore(Member member) {
private Member findMember(String userName) {
QueryWrapper<Member> queryWrapper = new QueryWrapper<>();
queryWrapper.eq("username", userName).or().eq("mobile", userName);
return this.getOne(queryWrapper);
return this.getOne(queryWrapper, false);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public SearchPage<EsGoodsIndex> searchGoods(EsGoodsSearchDTO searchDTO, PageVO p
cache.incrementScore(CachePrefix.HOT_WORD.getPrefix(), searchDTO.getKeyword());
}
NativeSearchQueryBuilder searchQueryBuilder = createSearchQueryBuilder(searchDTO, pageVo);
// searchQueryBuilder.withCollapseField("goodsId");
// searchQueryBuilder.withCollapseField("goodsId.keyword");
NativeSearchQuery searchQuery = searchQueryBuilder.build();
searchQuery.setTrackTotalHits(true);
log.debug("searchGoods DSL:{}", searchQuery.getQuery());
Expand Down

0 comments on commit e34b417

Please sign in to comment.