Combine bool with nested query

I am sending the following request:

{
	"query": {
		"bool": {
			"must": [{
				"terms": {
					"name": ["test"]
				}
			}, {
				"terms": {
					"tags": ["java", "php"]
				}
			}, {
				"nested ": {
					"path": "fields",
					"query": {
						"bool": {
							"must": [{
								"bool": {
									"must": [{
											"match": {
												"fields.uid": "number_43"
											}
										},
										{
											"match": {
												"fields.value": 612
											}
										}
									]
								}
							}]
						}
					}
				}
			}]
		}

	},
	"highlight": {
		"pre_tags": ["<b>"],
		"post_tags": ["</b>"],
		"fields": {
			"*": {}

		}
	}
}

It is giving me the following result:

no [query] registered for [nested ]

Can anyone help me here?
What is wrong in my query?

There is a space after nested. You need to change "nested " into "nested".

Thanks Abdon

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