Fixes a stemming glitch for images, a=chris

Chris Pollett [2011-01-28 06:Jan:th]
Fixes a stemming glitch for images, a=chris
Filename
bin/fetcher.php
lib/index_bundle_iterators/group_iterator.php
models/phrase_model.php
diff --git a/bin/fetcher.php b/bin/fetcher.php
index 22cd013bc..fc99a637d 100755
--- a/bin/fetcher.php
+++ b/bin/fetcher.php
@@ -1257,7 +1257,8 @@ class Fetcher implements CrawlConstants
                     $link_text =
                         mb_ereg_replace(PUNCT, " ", $link_text);
                     $link_word_counts =
-                        PhraseParser::extractPhrasesAndCount($link_text);
+                        PhraseParser::extractPhrasesAndCount($link_text,
+                            MAX_PHRASE_LEN, $lang);
                     $link_shard->addDocumentWords($link_keys,
                         self::NEEDS_OFFSET_FLAG,
                         $link_word_counts, array());
diff --git a/lib/index_bundle_iterators/group_iterator.php b/lib/index_bundle_iterators/group_iterator.php
index fce41deab..a23bf0694 100644
--- a/lib/index_bundle_iterators/group_iterator.php
+++ b/lib/index_bundle_iterators/group_iterator.php
@@ -217,7 +217,6 @@ class GroupIterator extends IndexBundleIterator
                 $done = true;
             }
         } while(!$done);
-
         return $pages;
     }

diff --git a/models/phrase_model.php b/models/phrase_model.php
index afe1b29e9..aeaa6dd4f 100755
--- a/models/phrase_model.php
+++ b/models/phrase_model.php
@@ -301,7 +301,7 @@ class PhraseModel extends Model
         $query_words = explode(" ", $phrase_string); //not stemmed
         $base_words =
             array_keys(PhraseParser::extractPhrasesAndCount($phrase_string,
-            MAX_PHRASE_LEN, getLocaleTag()));
+            MAX_PHRASE_LEN, getLocaleTag()));
             //stemmed
         $words = array_merge($base_words, $found_metas);
         if(isset($words) && count($words) == 1) {
ViewGit