Parent-Child
The parent-child feature handle following:
- search parent-child relations (vectors also supported)
- calculate score of child fields
To support parent-child search you need to do following steps:
-
Configure field as
nested
type in Index -> Fields (simple) or manually in Index -> Settings withcustom
mapping (advanced) -
Use a custom Profile in Search -> Profile and query the nested field
Example
For a field snippets:nested
and child fields title:string, text:string
the data format looks like:
{
"snippets": [
{
"title": "Hello World!",
"text": "This is the first example"
},
{
"title": "Another child document",
"text": "This is the second example"
}
]
}
Variants
The variant feature handle following:
- collapse results on variantId
- recalculate total count
- calculate facets and count
To support variant search you need to do following steps:
-
Push variants only to feeding endpoint
-
Configure
variantId
variable in Search -> Variables