What does the _q parameter in rest api exactly do?

Yeah it seems not to be documented, but I think it existed in v3 already in some form. Each service had a search function which accepts the _q param, but that has changed in v4.

I found hints of that here.