Prefix query returns results with empty value

I am running a simple prefix query against a field , the query returns results even thought I dont send any values (Empty input value) returns everything in the index, How to prevent this from happening? . If there is no search term , it should return no results