sure, that's a job for Hibernate Search. doing that by pure-SQL will get you into trouble.. lot of code to write and huge performance and scalability problems. The task you describe is trivial with Hibernate Search, but you can get much more than that, like typo's corrections, synonyms (vocabulary), return results in order of relevance, keywords highlighting, and much more. You might not need them now, but just in case be aware that it all gets easy. I'd recommend you read the book advertised in these pages as it best describes all features by a problem-solution approach and provides working examples.
_________________ Sanne http://in.relation.to/
|