Results 1 to 8 of 8

Thread: modifying search script source code (CGI)

  1. #1
    Join Date
    Apr 2005
    Posts
    2

    Default 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. #2
    Join Date
    Dec 2004
    Location
    Sydney, Australia
    Posts
    3,586

    Default

    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

  3. #3
    Join Date
    Apr 2005
    Posts
    2

    Default

    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).

  4. #4
    Join Date
    Dec 2004
    Location
    Sydney
    Posts
    4,157

    Default

    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

  5. #5
    Join Date
    Jun 2005
    Posts
    42

    Default 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">

  6. #6
    Join Date
    Jun 2005
    Posts
    42

    Default 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

  7. #7
    Join Date
    May 2011
    Posts
    3

    Default Remove "All" 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.

  8. #8
    Join Date
    Dec 2004
    Location
    Sydney
    Posts
    4,157

    Default

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

Similar Threads

  1. placing search code using SSI
    By rogersjr in forum Zoom Search Engine V4 (Old Version)
    Replies: 4
    Last Post: 08-13-2010, 07:27 AM
  2. asp version results in text of source code
    By genrl in forum Zoom Search Engine V4 (Old Version)
    Replies: 1
    Last Post: 07-22-2005, 10:59 PM
  3. OK...next question: modifying search results content?
    By LizJ in forum Zoom Search Engine V4 (Old Version)
    Replies: 2
    Last Post: 05-06-2005, 12:33 AM
  4. modifying search output on dynamic php site...
    By cfelax in forum Zoom Search Engine V4 (Old Version)
    Replies: 2
    Last Post: 05-02-2005, 12:15 AM
  5. Script code shows instead of results page
    By Anonymous in forum Zoom Search Engine V4 (Old Version)
    Replies: 2
    Last Post: 02-14-2005, 09:20 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •