GrailsInAction / graina2

Source code for the 2nd edition of Grails in Action
90 stars 92 forks source link

MEAP v11, chapter 5, suggestion for advSearch : "%${value}%" #46

Closed marcpa00 closed 10 years ago

marcpa00 commented 11 years ago

The dynamic search (after figure 5.9) as written does exact match, but that may not be obvious to the reader. I think using ilike field, "%${value}%" would make things easier to understand. At least, it would support the natural tendency to enter a part of a name, like 'rocher', to search for 'Graeme Rocher'.

pledbrook commented 10 years ago

Good point. It would also be consistent with the earlier queries. Will make the change.

pledbrook commented 10 years ago

Done. Thanks.