bugfix: use correct variable for text search

I do not understand how this was not throing an error. We need
some tests

Signed-off-by: Deployment Server <zeljko@zwr.fi>