Cleanup search code
Cleanup search code

Use == null for null or undefined checks.  Make all methods consistent
in returning the current value when no parameters are specified.

arowla/elastic.js,fullscale/elastic.js,wallin/elastic.js,ErwanPigneul/elastic.js,fullscale/elastic.js,arowla/elastic.js