get_child method
Leave feedback
On this page
Gets a child query by its index.
def get_child(self, index):
...
| Parameter | Type | Description |
|---|---|---|
| index | int |
The index. |
Returns: SearchQuery: A child query corresponding to the specified index.
for i in range(phrase_query.child_count):
child = phrase_query.get_child(i)
print("\t" + child.to_string() + " (field: " + str(child.field_name) + ")")
```
### Aliases
These names call `get_child` too, limited to the overloads listed.
| Alias | Accepts |
| :- | :- |
| `get_child_int32` | `get_child_int32(index)` |
### See Also
* class [`SearchQuery`](/search/python-net/groupdocs.search/searchquery/)
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.