How to setup @search directive?

type Product {

product: String  @search(by: fulltext) . #doesn't work
stores: String .

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

Buy the way how to have dql schema for interfaces?
Could you please show example of an interface?

I can add a little more context later, but there is no such thing as an interface in the DQL schema. But the iidea of an interface can be implemented in DQL with types where nodes are of multiple types and one type is the “interface” while the other is the “implementing type”.

I can convert a small GraphQL interface to DQL if you need me to do so.