How to setup @search directive?

@search is for GraphQL schema while @index is for the DQL schema.

https://dgraph.io/docs/query-language/schema/#adding-or-modifying-schema