Update search to accept a source that is an array.

When using this version of the file, my old code broke and i could no longer pass an array in as the data.  This will allow people to pass in an array as well as an object.
Merge pull request #1009 from hockeybtm/patch-1

Update search to accept a source that is an array.