PassMark Logo
Home » Forum

Announcement

Collapse
No announcement yet.

Zoom search v8 suggestive search

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Zoom search v8 suggestive search

    Hi,

    I have successfully integrated Zoom Search v8 with Drupal 7. However, there seems to be an issue with autocomplete feature.

    In Drupal configuration page, I have the below setup.

    Click image for larger version

Name:	2019-04-03 09_03_30-Zoom Search.jpg
Views:	187
Size:	18.5 KB
ID:	35783

    However, when I start typing on the search box, below error appears on Chrome Console, every time the autocomplete list refreshes. If you look closely, the URL in the error omits the path I have given to index files which is /zoom

    Shouldn't it be http://ab-webdev-01:5678/zoom/search...1&zoom_query=h

    Click image for larger version

Name:	2019-04-03 09_07_05-Site Search.jpg
Views:	146
Size:	9.3 KB
ID:	35784
    Attached Files

  • #2
    The workaround is to place all files that exists within /zoom folder to main root... but I would like to keep them in a separate folder.

    Comment


    • #3
      Sorry, I wasn't right. It is not a workaround for me to place files in main root. Since the site is secured, before I have given only Basic Authentication to /zoom folder.

      By placing files in main root, it defeats the security if I give Basic Authentication to main root.

      Comment


      • #4
        We'll have a look at it. In the meantime edit the zoom_autocomplete.js file to point to the correct location for the PHP script.

        For example, change these lines

        Code:
            if (typeof ZoomAutoComplete_URL == "undefined")
                openURL = "search.php?zoom_ac=1";
            else
                openURL = ZoomAutoComplete_URL;
        to

        Code:
            if (typeof ZoomAutoComplete_URL == "undefined")
                openURL = "search.php?zoom_ac=1";
            else
                openURL = ZoomAutoComplete_URL;
            openURL = "/zoom/search.php?zoom_ac=1";




        Comment


        • #5
          Thanks, I have done a similar fix to search.php as below.

          Code:
          print("var ZoomAutoComplete_URL = \"zoom/search.php".$LinkBackJoinChar."zoom_ac=1\";\n");

          Comment

          Working...
          X