Skip to content
Browse files

If only stuff removed, don't store new index batch number.

  • Loading branch information...
1 parent 25a2d7e commit ed9bf725910883399af8f22706ce79cbf73fdacc @dracos dracos committed May 12, 2011
Showing with 6 additions and 6 deletions.
  1. +6 −6 search/index.pl
View
12 search/index.pl
@@ -216,6 +216,12 @@
while (my $row = $fbq->fetchrow_hashref()) {
my $xid = "calendar/$row->{id}";
+ if ($row->{deleted}) {
+ # Remove from Xapian if it's marked as deleted in the database
+ $db->delete_document_by_term("Q$xid");
+ next;
+ }
+
if ('calendar' ne $last_area) {
$last_hdate = $row->{event_date};
$last_area = 'calendar';
@@ -227,12 +233,6 @@
my $date = $row->{event_date};
$date =~ s/-//g;
- if ($row->{deleted}) {
- # Remove from Xapian if it's marked as deleted in the database
- $db->delete_document_by_term("Q$xid");
- next;
- }
-
my $doc = new Search::Xapian::Document();
$termgenerator->set_document($doc);

0 comments on commit ed9bf72

Please sign in to comment.
Something went wrong with that request. Please try again.