PassMark Logo
Home » Forum

Announcement

Collapse
No announcement yet.

Generating search results from a hyperlink?

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

  • Generating search results from a hyperlink?

    Apologies if this has been asked before (I hunted, but could not find the answer) - is it possible to generate a search from a hyperlink?

    What I have in mind is tagging small groups of related web pages (not enough to merit a separate category). For instance, if I had a page that had a poem by William Wordsworth I would like to create a hyperlinked tag that could generate search results for other William Wordsworth poems when clicked, rather than having the visitor type the poet's name into the search box.

    Is this somehow possible with Zoom Search, perhaps by use of a special meta tag?

  • #2
    You can pass a search query on via hyperlink by linking to the search page with zoom_query parameter filled in with what you want to be searched. For example, the following query will bring up search results for "zoom search" on our website.

    http://www.wrensoft.com/search.php?zoom_query=zoom+search

    Comment


    • #3
      Ah, Richard! Of course! Simple and brilliant

      I've been using Zoom Search for years now but have only just recently begun to explore the full richness of its features. It's an excellent piece of work, and congratulations to the administrators of this forum for their diligence in providing replies to customer queries.

      Well done!

      Comment


      • #4
        How would you generate an EXACT search query from a hyperlink? The double quotation marks cause a validation error within the href tag.

        Comment


        • #5
          You have to encode the quotation marks with Percent Encoding:
          http://en.wikipedia.org/wiki/Percent-encoding

          So an exact phrase search for "toms cat" would look something like:

          http://www.mysite.com/search.php?zoom_query=%22toms+cat%22
          --Ray
          Wrensoft Web Software
          Sydney, Australia
          Zoom Search Engine

          Comment


          • #6
            Thank you very much Ray.

            Comment


            • #7
              Sorry for the trouble, but when I set up exact searches I get the appropriate results where they exist, but they are also including near matches, which I don't want, e.g.

              https://mysite/search.php/?zoom_query=%22aine%22

              is returning results for "ain"

              https://mysite/search.php/?zoom_query=%22aisling%22

              is returning results for "aisles"

              Any way around this so that I can get exact matches on a single word search?

              Comment


              • #8
                You can disable this under "Configure"->"Languages" and uncheck "Enable stemming". You will need to reindex for the change to take effect.
                --Ray
                Wrensoft Web Software
                Sydney, Australia
                Zoom Search Engine

                Comment


                • #9
                  Many thanks, Ray!

                  Comment

                  Working...
                  X