This commit is contained in:
@@ -69,14 +69,16 @@ public class ImageFoundRequestHandler implements RequestHandler {
|
||||
log.info("searchResponseYandex OK");
|
||||
List<YandexSearchResponse.ImageResult> allYandexImages = searchImageService.getAllImagesWithoutPagination(
|
||||
searchResponseYandex, "visual_matches");
|
||||
searchResponseGoogle = searchImageService.searchReverseByPublicUrl(fileEntity, "google_lens",
|
||||
"exact_matches");
|
||||
// searchResponseGoogle = searchImageService.searchReverseByPublicUrl(fileEntity, "google_lens",
|
||||
// "exact_matches");
|
||||
|
||||
log.info("searchResponseGoogle OK");
|
||||
List<YandexSearchResponse.ImageResult> allGoogleImages = searchImageService.getAllImagesWithoutPagination(
|
||||
searchResponseGoogle, "exact_matches");
|
||||
// List<YandexSearchResponse.ImageResult> allGoogleImages = searchImageService.getAllImagesWithoutPagination(
|
||||
// searchResponseGoogle, "exact_matches");
|
||||
// allUniqueImages = searchImageService.removeDuplicateUrls(allYandexImages,
|
||||
// allGoogleImages);
|
||||
allUniqueImages = searchImageService.removeDuplicateUrls(allYandexImages,
|
||||
allGoogleImages);
|
||||
new ArrayList<>());
|
||||
log.info("allUniqueImages OK");
|
||||
|
||||
} catch (TimeoutException e) {
|
||||
|
||||
Reference in New Issue
Block a user