There are a few reasons why you might want to remove the price attribute from your records, the most common is if you are exceeding your record size limit.
However as the price is built into the extension, this is not an easy process, and will require you to make significant alterations to the front end and back end of your site.
Here are the steps you will need to follow:
- First you will need to remove it as a searchable attribute.
- Then you will want to make sure that the price is also removed from your facets and sorts (Stores > Configuration > Algolia Search > Instant Search Results Page > Sorts).
- The price will still be in your index however, you can use the event algolia_after_create_product_object from https://github.com/algolia/algoliasearch-magento-2/blob/develop/Helper/Entity/ProductHelper.php#L527-L532 to create a back end event to remove it from the index manually.
You would, of course, also want to remove the price directives from your hits: https://github.com/algolia/algoliasearch-magento-2/blob/develop/view/frontend/templates/instant/hit.phtml#L54-L88