Changeset 29945 for gs3-extensions/solr
- Timestamp:
- 2015-06-04T19:01:08+12:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gs3-extensions/solr/trunk/src/perllib/solrbuildproc.pm
r28127 r29945 294 294 295 295 $end_doc = " </delete>\n"; 296 297 # for delete mode, we need to specify just the docOID to delete and we're done 298 my $text = $start_doc; 299 $text .= $end_doc; 300 print $solrhandle $text; 301 return; 296 302 } 297 303 … … 342 348 343 349 $end_sec = " </delete>\n"; 350 351 # for delete mode, should specify only this section's docOID to delete, then move on to the next section 352 my $text = $start_sec; 353 $text .= $end_sec; 354 print $solrhandle $text; 355 $section = $doc_obj->get_next_section($section); 356 next; 344 357 } 345 358 … … 642 655 my ($doc_obj,$file) = @_; 643 656 644 $self->textedit($doc_obj,$file,"update"); 657 # the update command does not exist in solrbuildproc 658 # reindexing consists of deleting and then adding the same file 659 #$self->textedit($doc_obj,$file,"update"); 660 $self->textedit($doc_obj,$file,"delete"); 661 $self->textedit($doc_obj,$file,"add"); 645 662 } 646 663
Note:
See TracChangeset
for help on using the changeset viewer.