Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Highlight.js relocation fails, doesn't work

  1. #1
    Join Date
    Feb 2009
    Posts
    22

    Default Highlight.js relocation fails, doesn't work

    New Customer...

    Extensively searched the Forum - found good advice already, to earlier issues. Need advise on this one...

    Zoom: Professional, Version: 6.0, Build: 1009
    Server: Linux, Method: CGI

    Downloaded 02/07/2009: /Installed/Configured Zoom to index my 15,000 page website this Saturday. Impressive so far!

    Need highlighting.

    Setup all the config options correctly. Documents include the required html/scripts.

    Works fine!... if I include the highlight.js file in the SAME DIRECTORY as the document to be indexed, and leave the searched document's script (include) example set per the manual's example.

    But when I move the highlight.js file to another director, of course, changing the "src" script include--- Highlighting is no longer provided.

    Certainly a neophytes problem - but I need help.

    Please advise.

  2. #2
    Join Date
    Dec 2004
    Location
    Sydney
    Posts
    4,156

    Default

    It should not really matter what folder the JS file is in, as long as you have the correct path set in each HTML file.

    My first guess would be simply that the path to the JS file is wrong.

  3. #3
    Join Date
    Feb 2009
    Posts
    22

    Default Highlight.js relocation fails, doesn't work

    That's been my assumption, as well, and I assume I am doing something stupid, but have been unable to figure it out.

    I know the highlight.js file is in the cgi directory and I am using the following in my search results PAGE. NOTE: As stated in my first post, if I change the Script below to "src=highlight.js" (since I have another copy of the script in the same directory as my searched PAGE), highlighting works as advertised.

    <LINK href="../../../../inc/ubsource.css" type=text/css rel=stylesheet>
    <script type="text/javascript" src="../../../../cgi/highlight.js"></script>
    </HEAD>
    <body background="../../../../images/wall01a.gif" bgcolor="#bae9f8" text="#003399" onLoad="highlight();">
    <script type="text/javascript" src="../../../../pahdr.js"></script>

    The search form can be invoked at:
    www.theosoft.info/cgi/search.cgi

    Appreciate your response...

  4. #4
    Join Date
    Feb 2009
    Posts
    22

    Default

    Found the problem. Poor choice of directory for highlight.js.

    I put it in the 'cgi' folder and the server was blocking the access request. Moved it to newly created folder and all is well.

    Appreciate your response!

    SUPER PRODUCT BTW...

  5. #5
    Join Date
    Sep 2006
    Posts
    39

    Default

    Regarding the new highlight.js file.

    Improved highlighting in context descriptions: The highlighting in context descriptions has been improved such that words matching due to stemming, synonyms, or accent insensitivity options enabled can be highlighted.
    This does not work for me.
    Any suggestions?

  6. #6
    Join Date
    Dec 2004
    Location
    Sydney
    Posts
    4,156

    Default

    Rather that just saying "does not work", can you give some details of what doesn't work. Maybe even an example. Are you sure you are even using the new JS file?

  7. #7
    Join Date
    Dec 2004
    Location
    Sydney, Australia
    Posts
    3,573

    Default

    cardiogr - the feature you are quoting is for highlighting in the context descriptions. This is the text that appears on the search results page.

    This does not apply for the "highlight.js" javascript which is used to highlight words on the actual page. There is no simple way to implement such a feature in the "highlight.js" javascript without compromising download time for each page (by increasing size of the script significantly), and execution time (due to the computation needed to determine variations of all the words on the page) so we have no plans of doing this at this point.
    --Ray
    Wrensoft Web Software
    Sydney, Australia
    Zoom Search Engine

  8. #8
    Join Date
    Sep 2006
    Posts
    39

    Default

    Thank you for your answer,

    I understand that calculating all the possible synonyms using javascript and highlighting them will slow down the loading of the webpage.
    If however a webpage has only a synonym matched (and not the original word searched), then you could change the generated link and instead of ?zoom_highlight=original_keyword it could be ?zoom_highlight=synonym.

    Could something like that be implementable?

  9. #9
    Join Date
    Dec 2004
    Location
    Sydney
    Posts
    4,156

    Default

    There can be dozens of matching words on a single page once stemming, synonyms, and accent insensitivity are taken into account. Even just with synonyms there can be multiple matches. While not technically impossible to deal with all of these the costs would seem to out weight the benefit.

  10. #10
    Join Date
    Jan 2009
    Posts
    1

    Default Highlighting variants

    How about passing only what is shown in the "hit list" summary for a given file? That way you're only dealing with a finite set (which you already have to enumerate to create the summary), and you avoid having no highlighting at all in files that do not contain the original search term. As it is, the highlighting appears to be "broken" on many pages.

    Thanks

Posting Permissions

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