laravel-elasticsearch
laravel-elasticsearch copied to clipboard
Feature/unsafe queries / Bug Fix Losing Connection
This PR aims to add a new option to allow a developer to opt into using "unsafe_queries". Essentially It's supposed to skip mapping checks and avoid doing any elastic search calls Except for when getting database info.
This is mostly needed from a performance perspective.
I also am running into a weird issue where save and saveWithOutRefresh lose their connection and as a result throw an exception. I can't replicate it in tests just in my environment that uses a Cloud connection. As a result, I added safety measures to ensure a connection existed before building the bridge.