changed 'select' api to 'search'

In docs, it says the api is 'select' but in the source code it is being used as 'search'