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

Index Type with composite key #200

Open
chripalombella opened this issue Jul 14, 2017 · 0 comments
Open

Index Type with composite key #200

chripalombella opened this issue Jul 14, 2017 · 0 comments

Comments

@chripalombella
Copy link

chripalombella commented Jul 14, 2017

Hi,
i have to index a type with a composite key:

    Site site
    User user


    static constraints = {
    }

    static belongsTo = [Site, User]


    static mapping = {
        id composite: ["user", "site"]
    }

    static searchable = {
        site component : true
        user component : true
    }

But when i save, i got this error:

ERROR grails.plugins.elasticsearch.index.IndexRequestQueue - Error Indexing class ---classname--- (index: ---indexname--- , type: ---tipename---) of id null

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant