PassMark Logo
Home » Forum

Announcement

Collapse
No announcement yet.

modifying search script source code (CGI)

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

  • modifying search script source code (CGI)

    Greetings,

    I would like to try to modify the source code (of the cgi platform) but i can't do it, cause the file "Linux_search.cgi" is not understandable (encrypted) in contrast to the other platform files (PHP, ASP) which you can modify easily ...

    ... it this the case because I'am using the Free Edition or the file comes encrypted also with the Professional Edition?

    Thanks a lot.

  • #2
    You can not modify the CGI because it is a compiled binary executable. It is written in C/C++ (like the Indexer itself) and that is why it has such a performance gain over the PHP and ASP alternatives. It is not a Perl script, and it is not 'encrypted'. For a more detailed explanation, see:
    http://www.wrensoft.com/zoom/support/platforms.html#cgi

    Because of this, we have designed it so that it is generally not required to modify the script (or source code) for most customizations. For example, you can use the language files to modify the text that is displayed by the search page, and you can radically modify the layout with some clever CSS.

    What were you hoping to change in the source? Perhaps we can give you some tips about an alternative way to achieve this without having to modify the code.
    --Ray
    Wrensoft Web Software
    Sydney, Australia
    Zoom Search Engine

    Comment


    • #3
      Ray - thanks for your answer;

      We were hoping to modify the search string (if thats what it's called) ... the URL/text visible at the adress bar which now looks something like http://www.domain.com/cgi-bin/search.cgi?zoom_query=something&zoom_per_page=10&z oom_and=0&zoom_sort=0
      and translate/remove those words if possible, since the site is gonna be in an another language ...

      ... at the Results Layout tab, when you turn on the 'Context description' option it shows body/content text (good thing), but if the page that's being indexed does not have any body text, it shows/makes visible the keywords of that page (which is not that good).

      Comment


      • #4
        There is no way to change this particular behaviour in the CGI without us doing a small amount of custom development on the C++ code and recompiling it to make a new binary.

        Of course adding some content that contained the key words in question, on the pages that have no content, would solve half of your problem.

        --------
        David

        Comment


        • #5
          removing all the extra params in url from cgi search

          I think I have an answer to your problem.

          Replace the following line in your search_template.html file



          with this

          <form method="Post" action="/cgi-bin/us/search.cgi" class="zoom_searchform">

          Comment


          • #6
            changing cgi url

            If you want to go even further you could use isapi_rewrite lite to change your /cgi-bin/search.cgi url to something like /search.html.

            Below are the contents of my httpd.ini config file for isapi_rewrite that will accomplish this. (Note : If you are logging in IIS it will log "search.cgi", not search.html)

            [ISAPI_Rewrite]
            RewriteRule /search.jhtml /cgi-bin/us/search.cgi

            Comment


            • #7
              Remove &quot;All&quot; category from CGI search

              I would like to remove the "All" category from the CGI script. I have several other categories defined on the Categories page, and I don't want the "All" option to show in the pulldown.

              I was told by tech support that I would have to write a custom HTML search form to do that. But I don't want to move away from the CGI script - it is very fast (as stated in one of the earlier posts).

              I wish there was just an option on the Category page to disable the "All" selection, if other categories are defined. I submitted a feature request for that. Hopefully, the Zoom folks will implement that in a future version.

              Comment


              • #8
                Just define your own search form. See,
                http://www.wrensoft.com/zoom/support...tml#searchform

                Comment

                Working...
                X