package com.dbnt.kcscopensearch.opensearch.docSearch.repository;

import com.dbnt.kcscopensearch.opensearch.docSearch.model.DocTitle;
import org.springframework.data.domain.Pageable;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DocTitleRepository extends ElasticsearchRepository<DocTitle, Integer> {

  List<DocTitle> findByDocNmContains(String text, Pageable pageable);
}
