makeandship / acf-elasticsearch

Plugin for Elasticsearch indexing and searching of Wordpress sites using ACF
https://www.makeandship.com
MIT License
13 stars 2 forks source link

Question #24

Open ctaity opened 5 years ago

ctaity commented 5 years ago

Existis some hook to add fields to document before send to elastic. I need to add the thumbnail url is posibble to the index. Thanks.

mthomsit commented 5 years ago

PostDocumentBuilder#transform_acf_value controls what gets indexed. Some field types aren't handled / don't have a transformer and return null but could be implemented.

https://github.com/makeandship/acf-elasticsearch/blob/master/src/makeandship/elasticsearch/post-document-builder.php

I'd suggest your implementation would be best placed there.

At the moment there aren't hooks.