viewgit/inc/functions.php:22 Function utf8_encode() is deprecated [8192]

Further tweaks guess semantics 2, a=chris

Chris Pollett [2019-06-26 18:Jun:th]
Further tweaks guess semantics 2, a=chris
Filename
src/models/PhraseModel.php
diff --git a/src/models/PhraseModel.php b/src/models/PhraseModel.php
index 429b75bb1..0bd2ff8e6 100755
--- a/src/models/PhraseModel.php
+++ b/src/models/PhraseModel.php
@@ -1551,26 +1551,6 @@ class PhraseModel extends ParallelModel
             } else {
                 $index_name = $this->index_name;
             }
-            $disjunct_phrases = explode("|", $original_query);
-            $out_query = "";
-            $pipe = "";
-            foreach ($disjunct_phrases as $disjunct) {
-                if (!stristr($disjunct, "site:")) {
-                    if (!stristr($disjunct, "lang:") &&
-                        !stristr($disjunct, "media:image")) {
-                        $locale_tag = L\guessLocaleFromString($original_query);
-                        $lang_parts = explode("-", $locale_tag);
-                        $disjunct .= " lang:" . $lang_parts[0];
-                    }
-                    if (!stristr($disjunct, "safe:")) {
-                        $disjunct .= (!isset($_SESSION['SAFE_SEARCH']) ||
-                            $_SESSION['SAFE_SEARCH'] == "true") ?
-                            " safe:true" : " safe:all";
-                    }
-                }
-                $out_query .= $pipe . $disjunct;
-                $pipe = "|";
-            }
             $iterators[0] = new I\NetworkIterator($out_query,
                 $queue_servers, $index_name, $filter, $save_timestamp_name);
         }
ViewGit