prototype(Newland.Toubiz.Search.Neos:SearchResultRenderer).documentNode {
    condition = ${result.source == 'Newland\Toubiz\Search\Neos\Indexer\DocumentNodeIndexer'}
    renderer = Newland.Toubiz.Search.Neos:GenericSearchResult {
        @context.heroImage = ${q(this.document).property('heroImage')}
        @context.ogImage = ${q(this.document).property('openGraphImage')}
        @context.otherImage = ${q(this.document).property('image')}
        image {
            sourceUri = Neos.Fusion:Case {
                if {
                    condition = ${heroImage}
                    renderer = Neos.Neos:ImageUri {
                        asset = ${heroImage}
                    }
                }
                elseif1 {
                    condition = ${ogImage}
                    renderer = Neos.Neos:ImageUri {
                        asset = ${ogImage}
                    }
                }
                elseif2 {
                    condition = ${otherImage}
                    renderer = Neos.Neos:ImageUri {
                        asset = ${otherImage}
                    }
                }
                else {
                    condition = ${true}
                    renderer = ${null}
                }
            }
        }

        content = ${result.description}
    }
}