dev comment all yandex search
Test Workflow / test (push) Successful in 4s

This commit is contained in:
vladp
2026-03-17 11:21:16 +07:00
parent 59125b4d19
commit 566c1634a2
@@ -63,6 +63,7 @@ public class ImageFoundRequestHandler implements RequestHandler {
log.info("searchResponseGoogle OK,{}", searchResponseGoogle);
allGoogleImages = searchImageService.getAllImagesWithoutPagination(
searchResponseGoogle, "exact_matches");
} catch (TimeoutException e) {
log.warn("Google search timeout for file {}", fileId);
hasTimeout = true;
@@ -70,7 +71,6 @@ public class ImageFoundRequestHandler implements RequestHandler {
log.error("Google search failed for file {}", fileId, e);
}
// /*
try {
searchResponseYandex = searchImageService.searchReverseByPublicUrl(fileEntity, "yandex_reverse_image",
"visual_matches");
@@ -83,11 +83,10 @@ public class ImageFoundRequestHandler implements RequestHandler {
} catch (IOException e) {
log.error("Yandex search failed for file {}", fileId, e);
}
// */
// allUniqueImages = searchImageService.removeDuplicateUrls(allYandexImages, allGoogleImages);
allUniqueImages = searchImageService.removeDuplicateUrls(allYandexImages, allGoogleImages);
// allUniqueImages = allGoogleImages;
allUniqueImages = allYandexImages;
// allUniqueImages = allYandexImages;
log.info("allUniqueImages OK: {} images", allUniqueImages.size());
tariffInfoService.writeOffTokens(fileEntity.getUserId(), TariffConstants.TOKEN_VALUE_FOR_SEARCH);