1 { # Based on the change to Class::DBI in OpenILS::Application::Storage. This will
2 # allow us to use TSearch2 via a simple cdbi "search" interface.
3 #-------------------------------------------------------------------------------
11 if (ref($args[-1]) eq 'HASH' && @args > 1) {
12 $args[-1]->{_placeholder} = "to_tsquery('default',?)";
14 push @args, {_placeholder => "to_tsquery('default',?)"};
17 $self->_do_search("@@" => @args);
23 $self->_do_search("~*" => @args);
29 $self->_do_search("ILIKE" => @args);