package at.procon.dip.domain.ted.config;

import jakarta.validation.constraints.Positive;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConfigurationProperties(prefix = "dip.ted.projection")
@Data
public class TedProjectionProperties {
    private boolean enabled = true;
    private boolean startupBackfillEnabled = false;
    @Positive
    private int startupBackfillLimit = 250;
    @Positive
    private int structuredSearchHybridCandidateLimit = 5000;
    @Positive
    private int structuredSearchFacetBucketLimit = 12;
}
