package io.delphiplatform.api.v3.search.repository;

import org.springframework.data.elasticsearch.core.SearchHits;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

import java.util.List;

import io.delphiplatform.api.v3.search.entity.LinkfireLinkDocumentEntity;

public interface LinkfireLinkDocumentRepository extends ElasticsearchRepository<LinkfireLinkDocumentEntity, String> {

    List<LinkfireLinkDocumentEntity> findAllByLinkUrl(String linkUrl);

    SearchHits<LinkfireLinkDocumentEntity> searchAllByLinkUrl(String linkUrl);

}
