Skip to content

Spring data elasticsearch method exists..... not working as expected. #8

Open
@hungbang

Description

@hungbang

I want to check whether the Whitelists entity is existing or not.
`
public interface WhitelistRepository extends ElasticsearchRepository<Whitelists, String> {

boolean existsByNormalizedNameAndCompanyId(String normalizedName, String companyId);

}`

Expected: The result will be boolean.
Actual: they return 1 Whitelist object instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions