NestedQuery specifies the nested query configuration. You can use the nested query feature to query the data in the child rows of nested fields. Nested fields cannot be directly queried. To query a nested field, you must specify the path of the nested field and a subquery in a NestedQuery object. The subquery can be a query of any type.
Data structure
message NestedQuery {
optional string path = 1;
optional Query query = 2;
optional ScoreMode score_mode = 3;
optional float weight = 4;
}
Parameter | Type | Required | Description |
path | string | Yes | The path of the nested field. The path is similar to the tree structure. For example, news.title indicates the title subcolumn in the news column of the nested type. |
query | Yes | The query on the subcolumn in the nested column. The query can be of any query type. | |
score_mode | No | Specifies which value is used to calculate the score when the field contains multiple values. | |
weight | float | No | The weight configurations of the query condition. |