Nested terms

Can some one pls help me to write a query , i cannot get result back

body: {
query: {

                        bool: {

                            must: [

                                {

                                    nested: {

                                        path: "Permissions",

                                        query: {

                                            terms: {

                                                "Permissions.PermissionCode ": cod

                                            }

                                        }

                                    }

                                }

                            ]

                        }

                    }

                }

}

Please take some more time to write a proper question. See also https://www.elastic.co/help

This is an incomplete query, and not a full search request, so noone knows if this is the full query. Also, it is badly formatted with lots of newlines and whitespace, which makes it hard to read.

However the most important part is to create a reproducible example, which includes index creation, index mapping, document indexing and a search request. If these information are missing, then every try to debug is more of a guess than a good tip.

Thanks!

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.