I'm trying to determine the best way to add full text search
capabilities to the default wicket-phonebook application.  Basically,
I want a single search textbox on the page that allows the user to
search for any data in any field of the data table.  So it would
search through all contact's first name, last name, email, and phone
number fields.  Doing the search should repopulate the data table with
only records that match the search.  The resulting table should still
be able to be paginated, filtered, and sorted.

Igor suggested that I use Hibernate Search (which uses Lucene behind
the scenes).  I've looked into that and it looks like the right way to
go.  I've already integrated it into a clean copy of wicket-phonebook
by converting the app to use hibernate annotations, adding hibernate
search annotations, and updating the appropriate xml files.

I found a helpful resouce, but it seems like doing it the way
suggested would result in a separate data set that wouldn't work with
the sorting/filtering/paging of the datatable:
http://www.jreactor.com/2008/02/18/wicket-and-hibernate-search/

So now I'm stuck and am not sure the best way to go forward.  I know
that I need to add the search feature to ContactsDataProvider and
ContactDao.  I'd welcome any suggestions, advice, and especially
example code!

Thanks,
Tauren

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to