different conditions search autocomplete implementation using jquery ui