package at.procon.dip.migration.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConfigurationProperties(prefix = "dip.migration.legacy-ted-embeddings")
@Data
public class LegacyTedEmbeddingBackfillProperties {

    /** Enable the legacy TED embedding-only backfill subsystem. */
    private boolean enabled = false;

    /** Run the embedding-only backfill automatically on application startup in NEW runtime. */
    private boolean startupEnabled = false;

    /** Number of legacy TED documents to inspect per cursor batch. */
    private int batchSize = 500;

    /** Optional cap for a single invocation. 0 or negative means unlimited. */
    private long maxDocumentsPerRun = 0;

    /** Skip legacy TED rows that do not yet have a migrated primary SEMANTIC_TEXT representation. */
    private boolean skipWhenPrimaryRepresentationMissing = true;

    /** Queue a fresh embedding job when no legacy vector exists for a migrated document. */
    private boolean queueMissingEmbeddings = false;
}
