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