PassMark Logo
Home » Forum

Announcement

Collapse
No announcement yet.

Can this be done?

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

  • Can this be done?

    I have pages on my website laid out on one page like
    summary
    ...
    ...
    ...

    review notes
    ...
    ...
    ...

    tech notes
    ...
    ...
    ...

    I'd like to have 3 check boxes on my search page to only return search results for what has been selected. So If I only have summary selected and the word duck is only in the tech notes, searching for duck won't return anything. Can this be done and if so can you please let me know where to start?

    Thanks

  • #2
    You need to use the categories feature.

    See the User's Guide for details.
    http://www.wrensoft.com/zoom/usersguide.html

    Comment


    • #3
      Yeah I saw that but unless I am missing something you can't define category's to sections of a page, ie category 1 top, category 2 middle, category 3 bottom. A category is assigned to a whole page.

      Comment


      • #4
        I missed the part about your whole site being on a single page.

        You are correct, categories are not a solution if you only have 1 page. But there is no other option for a single page.

        Comment


        • #5
          Yes it can be done. You'll need to make 3 separate search indexes. Store the in just as many separate. Folders, because the zoom files will have the same name.

          You should be able to index the page. Then Use the zoom index program to remove any pages pertaining to the other two pages. You will then do the same process a second and then third time. Each time keeping the needed paged for that section while removing the other two. You should end up with the different zoom generated search index.I 3 folders. 1 for each section.. You then need to change the search page I have included to suit your site. I had a drop down menu instead of check boxes.
          And I had 4 sections. You can just delete one of the menu options to make it .

          This script will search the section selected. And only searches 1 at a time . So it should works for your needs.


          <form form name="selvol" action="http://www.YOURSITE.com/" method="get" onSubmit="selvol(this)">
          <input type="text" id="Editbox1" style="position:absolute;left:619px;top:8px;width: 150px;font-family:Courier New;font-size:16px;z-index:4" size="15" name="zoom_query" value="">
          <input type="image" name="ImageButton1" value="Submit" id="ImageButton1" src="http://YOURIMAGEsearch.gif" style="position:absolute;left:825px;top:8px;width: 69px;height:29px;z-index:6">
          <select name="se" size="1" id="Combobox1" style="position:absolute;left:769px;top:8px;width: 54px;font-family:Courier New;font-size:16px;z-index:5">
          <option id="RadioButton1" value=on name=se selected>1</option>
          <option id="RadioButton2" value=on >2</option>
          <option id="RadioButton3"value=on value="se">3</option>
          <option id="RadioButton4" value=on value="se">4</option>
          </select>
          <input type="hidden" name="zoom_sort" value="0" />
          <input type="hidden" name="zoom_and" value="1" />
          <input type="hidden" name="zoom_per_page" value="10" />
          <script type="text/javascript">
          var domainroot="www.sketchlab.com"
          var searchaction=[ //form action for the 3 search engines
          "http://www.YOURSITE.com/1/search.*",
          "http://www.YOURSITE.com/2/search.*",
          "http://www.YOURSITE.com/3/search.*",
          "http://www.YOURSITE.com/4/search.*"
          ]
          var queryfieldname=["q","p","q","p"] //name of hidden query form for the 3 search engines
          function switchaction(cur, index){
          cur.form.action=searchaction[index]
          document.getElementById("hiddenquery").name=queryf ieldname[index]
          }
          function jksitesearch(curobj){
          for (i=0; i< document.selvol.se.length; i++){ //loop through radio to see which is checked
          if (document.selvol.se[i].selected==true)
          switchaction(document.selvol.se[i], i)
          }
          document.getElementById("hiddenquery").value="site :"+domainroot+" "+curobj.qfront.value
          }
          function ImageMap1_onclick() {
          }
          </script>
          </form>
          </div>

          Comment


          • #6
            The original poster stated he had 1 page, and that single page contains 4 sections. Top, Middle, Bottom & All.

            So this requirement doesn't seem to map across to your proposed solution of creating multiple sets of index files. Which, if I read it right, is indexing 3 subsets of the site, into 3 indexes. But in all cases indexing whole pages.

            There is also an additional problem which is that the original poster wanted check boxes (not a drop down or radio button). Check boxes allow the user to select more than 1 check box at a time. For example searching categories 1 and 2 at the same time. Your proposed solution only allows for 1 category to be searched at a time (if I understand it).

            Comment


            • #7
              When I say I have 1 page, I mean I have 1 page like info.asp , its a dynamic page that takes parameters. Sorry if that was not clear.

              info.asp?id=1
              info.asp?id=2
              ....
              info.asp?id=1567
              etc, etc

              Comment


              • #8
                If your pages are completely dynamic and your ASP script knows which part of the page belongs to each of your categories and you know how to code in ASP, then maybe you can make some changes to your info.asp script so that is can output sub pages. So you would have pages like this,
                info.asp?id=1&show=summary
                info.asp?id=1&show=notes
                info.asp?id=1&show=tech
                info.asp?id=1&show=all

                You could then use the categories feature in Zoom, using the URL to divide up the categories.

                These subpages could be either just a portion of the entire page text, or could be the entire text with sections of the text blocked from indexing using the <!--ZOOMSTOP--> and <!--ZOOMRESTART--> tags

                Comment

                Working...
                X