--- lib/Grep/Search.pm 2007/05/08 14:28:14 145 +++ lib/Grep/Search.pm 2007/06/09 10:27:03 151 @@ -121,6 +121,8 @@ $self->invindexer->add_doc( $doc ); $self->log->debug("added ", $i->id, " for user $uid to index"); + + return 1; } =head2 collection @@ -146,7 +148,10 @@ invindex => Grep::Search::Schema->open( $self->index_path ), ); $self->log->debug("$searcher created"); - my $full_q = "($q) AND _owner_id:" . Jifty->web->current_user->id; + my $full_q = "($q)"; + + my $uid = Jifty->web->current_user->id; + $full_q .= ' AND _owner_id:' . $uid if ($uid); $self->log->debug("searching for '$q' using $full_q"); my $hits = $searcher->search( @@ -205,7 +210,7 @@ undef $self; - return; + return 1; } =head2 snippet