java - Searching for multiple words in spring data repository -
i have pagingandsortingrepository:
public interface browserlinkpagination extends pagingandsortingrepository<browserlink, long> { list<browserlink> findbyuserandurilike(user user, string uri, pageable pageable); }
now want search multiple words in uri
column. like
comes pretty close, order dependent on how words occur in string.
edit clarification: order dependences not want. want search strings independent of order, like
not looking for.
i guess pretty common find, having several search terms in string, know implement providing sql execute, curiuous if there way express in terms of spring data?
i using postgresql production , h2 development / tests.
after reading more topic kind of obvious need kind of fulltext search. start using 1 provided postgresql. found short working example: http://rachbelaid.com/postgres-full-text-search-is-good-enough/
thanks comments.
Comments
Post a Comment