Definitely understood, but you need to prepare your data a bit more to get that, which can be seen how with the link provided.
For example:
function my_posts_index_settings( array $settings ) {
$fields = [
'payoff',
'descrizione_lunga',
'descrizione',
];
foreach ( $fields as $field ) {
// If you want the fields searchable too, which makes sense.
$settings['searchableAttributes'][] = 'unordered(' . $field . ')';
// If you want the fields above to be added to the attributes to snippet.
// The "50" is the string character limit to cut things off at.
// @see https://www.algolia.com/doc/api-reference/api-parameters/#highlighting-snippeting
$settings['attributesToSnippet'][] = $field . ':50';
}
return $settings;
}
add_filter( 'algolia_posts_speaker_index_settings', 'my_posts_index_settings' );
This snippet will get all 3 ACF fields added to the searchable attributes, as well as add them into the snippet-ed portion.
After that, you’re going to need to modify the templates used (Documentation: https://github.com/WebDevStudios/wp-search-with-algolia/wiki/Customize-Templates ) and start making use of the snippet based property. For example: `data._snippetResult['descrizione'].value
If you need help verifying that the snippet version made it into index results, let me know where I can see the search in action, and I can check the Algolia results coming back in and all the available data to you.