--- lib/Grep/Search/KinoSearch.pm 2008/05/23 21:23:44 191 +++ lib/Grep/Search/KinoSearch.pm 2008/05/23 21:52:06 192 @@ -74,16 +74,15 @@ my $q = shift or die "no q?"; + my $full_q = "($q)"; + my $uid = Jifty->web->current_user->id; + $full_q .= ' AND _owner_id:' . $uid if (defined $uid); + my $index_path = Jifty::Util->app_root . '/var/invindex'; my $searcher = KinoSearch::Searcher->new( invindex => Grep::Search::KinoSearch::Schema->open( $index_path ), ); $self->log->debug("$searcher created"); - my $full_q = "($q)"; - - my $uid = Jifty->web->current_user->id; - $full_q .= ' AND _owner_id:' . $uid if (defined $uid); - $self->log->debug("searching for '$q' using $full_q"); my $query_parser = KinoSearch::QueryParser->new(