I thank you for your answer, but that’s exactly the same hook that I am using.
Please notice that I am using two different hooks, one for the result, that only adds a custom field to the title and that’s working perfectly, and the other for the query which is done with the same hook you said.