feat: There is no way the, rest es conf
This commit is contained in:
@@ -100,6 +100,11 @@ public class ResetSearchCenterService {
|
|||||||
|
|
||||||
Boolean getStandIndex = elasticsearchService.isIndexExist("stand");
|
Boolean getStandIndex = elasticsearchService.isIndexExist("stand");
|
||||||
|
|
||||||
|
if(!getStandIndex){
|
||||||
|
logger.info("ES 不存在索引:stand");
|
||||||
|
return Result.error("ES 不存在索引:stand");
|
||||||
|
}
|
||||||
|
|
||||||
List<Map<String, Object>> searchListData = elasticsearchService.searchAll("stand");
|
List<Map<String, Object>> searchListData = elasticsearchService.searchAll("stand");
|
||||||
|
|
||||||
List<String> esIdList = searchListData.stream().map(stringObjectMap -> stringObjectMap.get("id").toString()).collect(Collectors.toList());
|
List<String> esIdList = searchListData.stream().map(stringObjectMap -> stringObjectMap.get("id").toString()).collect(Collectors.toList());
|
||||||
@@ -176,6 +181,11 @@ public class ResetSearchCenterService {
|
|||||||
public ResponseMessage resetLawsSearchCenter(SarLawsStandInfoPage sarLawsInfoEOPage,SearchCenter searchCenter) throws Exception{
|
public ResponseMessage resetLawsSearchCenter(SarLawsStandInfoPage sarLawsInfoEOPage,SearchCenter searchCenter) throws Exception{
|
||||||
Boolean getLawsIndex = elasticsearchService.isIndexExist("laws");
|
Boolean getLawsIndex = elasticsearchService.isIndexExist("laws");
|
||||||
|
|
||||||
|
if(!getLawsIndex){
|
||||||
|
logger.info("ES 不存在索引:laws");
|
||||||
|
return Result.error("ES 不存在索引:laws");
|
||||||
|
}
|
||||||
|
|
||||||
List<Map<String, Object>> searchListData = elasticsearchService.searchAll("laws");
|
List<Map<String, Object>> searchListData = elasticsearchService.searchAll("laws");
|
||||||
|
|
||||||
List<String> esIdList = searchListData.stream().map(stringObjectMap -> stringObjectMap.get("id").toString()).collect(Collectors.toList());
|
List<String> esIdList = searchListData.stream().map(stringObjectMap -> stringObjectMap.get("id").toString()).collect(Collectors.toList());
|
||||||
@@ -260,6 +270,11 @@ public class ResetSearchCenterService {
|
|||||||
public ResponseMessage resetBussStandSearchCenter(SarBussionessStandEOPage sarBussionessStandEOPage,SearchCenter searchCenter) throws Exception{
|
public ResponseMessage resetBussStandSearchCenter(SarBussionessStandEOPage sarBussionessStandEOPage,SearchCenter searchCenter) throws Exception{
|
||||||
Boolean getbussstandIndex = elasticsearchService.isIndexExist("bussstand");
|
Boolean getbussstandIndex = elasticsearchService.isIndexExist("bussstand");
|
||||||
|
|
||||||
|
if(!getbussstandIndex){
|
||||||
|
logger.info("ES 不存在索引:bussstand");
|
||||||
|
return Result.error("ES 不存在索引:bussstand");
|
||||||
|
}
|
||||||
|
|
||||||
List<Map<String, Object>> searchListData = elasticsearchService.searchAll("bussstand");
|
List<Map<String, Object>> searchListData = elasticsearchService.searchAll("bussstand");
|
||||||
|
|
||||||
List<String> esIdList = searchListData.stream().map(stringObjectMap -> stringObjectMap.get("id").toString()).collect(Collectors.toList());
|
List<String> esIdList = searchListData.stream().map(stringObjectMap -> stringObjectMap.get("id").toString()).collect(Collectors.toList());
|
||||||
|
|||||||
Reference in New Issue
Block a user