I have String "AlphaBetaZeta GammaTheta" (table field from MS SQL database), and i need search with spring-data with many like and with random order and random count of key-words
I'm trying search with:
findByLabelContaining(Collection<String> labels)
findByLabelLike(Collection<String> labels)
but these do not work.
Enable full-text search in the database or use elastic I can not, only Spring-Data with native interface method or with custom jpql-query.
SELECT id, label
FROM TABLE10
WHERE label like '%gam%' AND
label like '%alpha%' AND
label LIKE '%theta%'
SELECT id, label
FROM TABLE10
WHERE label like '%alpha%' AND
label like '%theta%'
and more..