Laravel Scout query returns null

I am using laravel scout algolia driver. I have working instant search using autocomplete.jquery.min.js. but when i try to query from the backend like App::Model::search('query')->get()
it returns null, and most of the times it gives timeout. i am stucked in here for about a month now please help. I am on development server and it may or may not get solved on production one