package com.cameleer.server.app.config;

import com.cameleer.server.core.search.SearchService;
import com.cameleer.server.core.storage.SearchIndex;
import com.cameleer.server.core.storage.StatsStore;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Creates beans for the search layer.
 */
@Configuration
public class SearchBeanConfig {

    @Bean
    public SearchService searchService(SearchIndex searchIndex, StatsStore statsStore) {
        return new SearchService(searchIndex, statsStore);
    }
}
