ElasticSearch Rule document

I have create a rule to populate elasticsearch index.
Is it possibile configure the reference fields, now there is only ids, but it would be easier if other fields had also passed.

I don’t understand if it is possibile using Document option

Best regards,
Federica

Environment

  • [ X] Self hosted with docker
  • [ ] Self hosted with IIS
  • [ ] Self hosted with other version
  • [ ] Cloud version

Version: [5.7.0]

Browser:

  • [X ] Chrome (desktop)
  • [ ] Chrome (Android)
  • [ ] Chrome (iOS)
  • [ ] Firefox
  • [ ] Safari (desktop)
  • [ ] Safari (iOS)
  • [ ] IE
  • [ ] Edge

It is possible with the document option. You have to select Liquid to create a liquid template:

You can then resolve references:

<% assign myReference = myId | reference %>