Skip to content

Commit

Permalink
global search MDL-24874 changed default search to include numerals so…
Browse files Browse the repository at this point in the history
… that we can delete indexes by docid.
  • Loading branch information
nebgor committed Oct 28, 2010
1 parent 45390cf commit 6d48569
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions search/delete.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@

foreach ($deletions as $delete) {
// find the specific document in the index, using it's docid and doctype as keys
// change from default text only search to include numerals for this search.
Zend_Search_Lucene_Analysis_Analyzer::setDefault(new Zend_Search_Lucene_Analysis_Analyzer_Common_TextNum_CaseInsensitive());
$doc = $index->find("+docid:{$delete->id} +doctype:$mod->name +itemtype:{$delete->itemtype}");

// get the record, should only be one
Expand Down

0 comments on commit 6d48569

Please sign in to comment.