@lando1982 Thanks for the update! I’ve since reverted all of my Facet changes. It was getting deep in the code. One thing I did alter was the ability for the admin-ajax api calls to return full counts for the search.
For example: Show 1-25 of 1,000,000. The AWSCloudSearch API returns that information naturally.
Upon digging into the code I suggest decoupling the API calls and your front end search jQuery magic. That way people who want custom front end stuff can still get access to raw/core AWSCloudSearch result data. Your front-end stuff could still work but it would be using a wider more adaptable search result object.
For example cloud-search-api.php
function acs_format_response
could use a action or filter to return all results from the AWSCloudSearch API, not just the items.
One last thing I would also suggest is an opt-in option for private fields. I noticed you were ignoring fields which started with _
. Normally a great idea BUT WooCommerce set’s all their prices to _price
. I altered that statement to include _
options so I could run advanced queries for a WooCommerce store.
Main take away, is all your hard work building the sync is super awesome, just de-couple the front end stuff so more advanced developers can hook and filter their way to happiness.
Thanks again for all the hard work!