Select specific columns

HI, I’m using Algolia with Laravel.

this is a classic eloquent collection
return Post::select(‘name’)->orderBy(‘created_at’,‘desc’)->get();

i’d like select only ‘name’ field in Algolia like this

Post::select(‘name’)->search($search)->get();

but doesn’t work.

There is a way for select specific columns?

thanks!