Hi am developing my first grails application now i want to put search method in my application.. Is it possible to match the single entered keyword with all the fields of the table.Like when i use findById it will search only on id or if i use findByName it will search only on name or findByDescription find only on description..
Is it possible to use findall or findBy* to match with all the fields like id, name, description..
Hi am developing my first grails application now i want to put search method
Share
If you are using a RDBMS, you can issue a query on the following lines:
But this is going to be very inefficient. You can instead use a full text search API lucene/ solr and index entire content as part of one field and issue queries on that.