How do I index custom fields with the search API using elasticsearch?
You seems to have provided link for creating custom fields using processor. Processor works smoothly for me.

Create custom fields using processor.
Make sure your name spaces are done correctly.
Enable your processor from the processor tab of Elasticsearch ui in Backend.
Go to &quot;fields&quot; section. You will see your added field there.
Finally Index item.