I want to use MySQL\'s full text search features using JPA, without having to use a native query.
I am using EclipseLink, which has a function to support native SQL
FInally work
if you set your table colums wit index full search
@NamedNativeQuery(name = "searchclient", query = "SELECT * FROM client WHERE MATCH(clientFullName, lastname, secondname, firstphone," + " secondphone, workphone, otherphone, otherphone1," + " otherphone2, detailsFromClient, email, company," + " address, contractType, paymantCondition) AGAINST(?)",
List list = em.createNamedQuery("searchclient").setParameter(1, searchKey).getResultList();