PhoneRepository.java 308 Bytes
package com.esboot.bertsearch.repository;

import com.esboot.bertsearch.dto.Phone;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

public interface PhoneRepository extends ElasticsearchRepository<Phone, String> { // DTO, PK
    Iterable<Phone> findByModel(String model);
}