Search endpoint implementation