Thank you all,
It seems that I cannot make working the solution provided by jacampbell, and the one by achiola is too complicated.
The problem with this kind of queries is that they are dynamically generated, according to some users entry.
What I think I will do is to solve this part of the querie in Java, by using the "startsWith" method.
..:: Carlos ::..