global search MDL-24874 changed default search to include numerals so that we can...
authorAparup Banerjee <nebgor@gmail.com>
Thu, 28 Oct 2010 03:38:10 +0000 (03:38 +0000)
committerAparup Banerjee <nebgor@gmail.com>
Thu, 28 Oct 2010 03:38:10 +0000 (03:38 +0000)
search/delete.php

index d0cae24..605dcfd 100644 (file)
                         
                         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