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

import com.dbnt.kcscopensearch.opensearch.docSearch.model.DocContent;
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 DocContentRepository extends ElasticsearchRepository<DocContent, Integer> {

  List<DocContent> findByTableContentContains(String text, Pageable pageable);
}
