You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by us...@apache.org on 2020/02/16 18:34:59 UTC

[lucene-site] branch master updated: LUCENE-9227: Fix at least Sematext search to use HTTPS

This is an automated email from the ASF dual-hosted git repository.

uschindler pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucene-site.git


The following commit(s) were added to refs/heads/master by this push:
     new 5b11c5a  LUCENE-9227: Fix at least Sematext search to use HTTPS
5b11c5a is described below

commit 5b11c5ab76e79339c4a65b40cdc86623d3ca5a22
Author: Uwe Schindler <us...@apache.org>
AuthorDate: Sun Feb 16 19:34:48 2020 +0100

    LUCENE-9227: Fix at least Sematext search to use HTTPS
---
 themes/lucene/templates/lucene/_search.html | 10 +++++-----
 themes/lucene/templates/solr/_search.html   | 12 ++++++------
 2 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/themes/lucene/templates/lucene/_search.html b/themes/lucene/templates/lucene/_search.html
index eec0602..27a72b9 100644
--- a/themes/lucene/templates/lucene/_search.html
+++ b/themes/lucene/templates/lucene/_search.html
@@ -13,14 +13,14 @@
         if (Math.random() > 0.5) {
           provider = "lucid";
         } else {
-          provider = "sl";
+          provider = "sematext";
         }
       }
 
       if (provider == "lucid") {
         form.action = "http://find.searchhub.org/p:lucene,solr";
-      } else if (provider == "sl") {
-        form.action = "http://search-lucene.com/lucene";
+      } else if (provider == "sematext") {
+        form.action = "https://sematext.com/opensee/lucene";
       }
 
       days = 90; // cookie will be valid for 90 days
@@ -33,7 +33,7 @@
     }
   </script>
   <form id="quick-search" method="GET" onsubmit="return submitForm(this)"
-        action="http://search-lucene.com/lucene"
+        action="https://sematext.com/opensee/lucene"
         name="searchform">
     <fieldset>
       <input type="search" id="q" name="q" value="Search with Apache Solr..." class="class1 class2 hint" accesskey="q"
@@ -42,7 +42,7 @@
       <select name="searchProvider" id="searchProvider">
         <option value="any">select provider</option>
         <option value="lucid">Lucid Find</option>
-        <option value="sl">Search-Lucene</option>
+        <option value="sematext">Sematext Opensee</option>
       </select>
     </fieldset>
     <script type="text/javascript">
diff --git a/themes/lucene/templates/solr/_search.html b/themes/lucene/templates/solr/_search.html
index 609a0b7..33370c6 100644
--- a/themes/lucene/templates/solr/_search.html
+++ b/themes/lucene/templates/solr/_search.html
@@ -8,14 +8,14 @@
 
 function selectProvider(form) {
   lucidAction = "http://find.searchhub.org/p:lucene,solr";
-  searchLuceneAction = "http://search-lucene.com/solr";
+  sematextAction = "https://sematext.com/opensee/solr";
 
   provider = document.getElementById('searchProvider').value;
-  if (provider == "lucid" || provider == "sl") {
+  if (provider == "lucid" || provider == "sematext") {
     if (provider == "lucid") {
       form.action = lucidAction;
-    } else if (provider == "sl") {
-      form.action = searchLuceneAction;
+    } else if (provider == "sematext") {
+      form.action = sematextAction;
     }
 
     // Only store provider preference cookie if the user selected it
@@ -28,7 +28,7 @@ function selectProvider(form) {
     if (Math.random() > 0.5) {
       form.action = lucidAction;
     } else {
-      form.action = searchLuceneAction;
+      form.action = sematextAction;
     }
   }
   return true;
@@ -47,7 +47,7 @@ function selectProvider(form) {
       <select id="searchProvider" class="search-provider">
         <option value="any"> - select provider - </option>
         <option value="lucid">@ Lucid Find</option>
-        <option value="sl">@ Search-Lucene</option>
+        <option value="sl">@ Sematext Opensee</option>
       </select>
     </div>
   </fieldset>