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

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -