Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow IndexCoordinates in repositories #2505

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Jan 10, 2024

  1. Allow IndexCoordinates in repositories

    It is common to have multiple indexes with the same document structure.
    E.g. rolling indices over time and having a wildcard alias.
    Sometimes one wants to select different IndexCoordinates than specified in
    `@Document(indexName = "...", ...)`. Also you might want to use the same
    Repository to do cross cluster searches and for this need to specify the IndexCoordinates.
    
    It would therefore be helpful to support IndexCoordinates as an argument to repository methods
    the same way ScrollPosition, Sort and Pageable are handled.
    
    This PR is an attempt to introduce this change. I keep it as draft to get some comments
    I can add tests to it if we can agree on the change being valid.
    ls-urs-keller authored and ukeller committed Jan 10, 2024
    Configuration menu
    Copy the full SHA
    dc0018e View commit details
    Browse the repository at this point in the history