dev set only yandex search
Test Workflow / test (push) Successful in 9s

This commit is contained in:
vladp
2026-02-19 15:36:22 +07:00
parent d4f26db9ce
commit 65bd103c74
@@ -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) {