Syntax for elasticsearch query

Does anyone know what is the correct syntax for query made on nextcloud using elasticsearch?

Indexing is ok, but I would like to know exactly all the variations for makng query.

I understand
“goofey is nice”
goofey mickey

but that’s it. Are there any other variations?