Allow minSearch to be 0 and open on down arrow

Fix minSearch to accept 0 as value and fix the underlying fonctions.