Closed
Description
I was looking at the JS code that builds the autosuggest list and found that only the post_title
is set to text
field of the formatted hits as seen below:
ElasticPress/assets/js/autosuggest.js
Lines 427 to 443 in 1c325e8
Is there any way to override this method somehow to add other fields like the post date?
Also, is it something that you'd be considering abstracting for a future version? I'd be interested in contributing with a PR if I had some general guidance.