In use-cases where it’s not feasible/convenient to create a new field in the schema for each field inside a tree. Namespace enabled fields allow efficient searching of values within nested fields. For example, this feature can be used for tags, file-system path names, or any tree-like structure for which contained names can be many, dynamic and/or not known in advance.
_namespace parameter must be enabled during the schema field creation:
The above example is the document being indexed, the parameter
part enables the Namespace Queries functionality.
By default namespaced fields keep information for each level in the path. This
behaviour can be modified by setting
false, when creating
a field schema:
Partial paths can be used for Namespace Queries.
The concrete datatype for all nested objects must be of the same type as one
declared in the object enabling the