Skip to main content

AI image search log

Every image search is recorded, which lets you see what shoppers are looking for, judge whether the results were useful, and investigate rejected uploads. The AI Image Search Log opens from the Image Search Log entry of the header menu shown on every System -> Search Management page, or from the Open Request Log button of the Search Ultimate dashboard.

AI image search log

AI image search log

The grid contains the following columns:

  • ID: the log entry identifier.
  • Date: when the search was performed.
  • Store: the store view the search was made in.
  • Image: a small copy of the uploaded image.
  • IP: the IP address the upload came from.
  • User Agent: the browser or client that submitted the upload.
  • User hint: the optional text the shopper typed alongside the image.
  • AI Primary Query: the description the AI vision model produced for the image. This is what the catalog was actually searched with.
  • # Results: how many products were returned.
  • Moderation Flags: the categories that caused an upload to be rejected, if the moderation gate blocked it.
  • Status: the outcome of the search.
  • Tokens: the tokens consumed by this search.
  • Duration (ms): how long the search took, in milliseconds.

Selecting a log entry opens its details, including the uploaded image and the recognized query.

tip

AI Primary Query is the most useful column when tuning results. If it describes the uploaded photo poorly, the problem lies with the image or with Store Context for AI rather than with the similarity threshold. If it describes the photo well but # Results is still 0, Minimum Similarity Score is likely too strict.


Retention and cleanup​

Log entries are removed automatically by two daily cron jobs:

Cron jobDescriptionSchedule
mirasvit_searchai_cleanup_old_logsdeletes log entries older than Log Retention (days), together with thumbnails that no other log entry usesdaily at 03:00
mirasvit_searchai_cleanup_orphan_thumbnailsremoves thumbnail files that no longer belong to a log entrydaily at 03:30

Retention is controlled by the Log Retention (days) setting, which defaults to 90 days. Setting it to 0 disables cleanup, and the log then grows indefinitely.

warning

Log entries hold shopper-uploaded images and IP addresses. Choose a retention period consistent with your privacy policy, and be aware that setting Log Retention (days) to 0 keeps that data forever.

note

An image search results page is reachable by its own link only for as long as its log entry exists. Once the entry is removed by the cleanup cron, the link redirects to the home page. While Enabled in the Image search group is set to No, every such link redirects to the home page.