Skip to main content

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:

  1. Configure field as nested type in Index -> Fields (simple) or manually in Index -> Settings with custom mapping (advanced)

  2. 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:

  1. Push variants only to feeding endpoint

  2. Configure variantId variable in Search -> Variables