Search with variable LIKE %

Hi, I’m using Java API, but now, I want to query (search, filter) with variable text. But the engine now seems to have some problem with the “Like” function now work not correct! It’s the same as the “Equal” search. How I can do it? Possible get connect and search with native query. I want to search and filter with many fields in many tables. If using native query it looks very hard!