PassMark Logo
Home » Forum

Announcement

Collapse
No announcement yet.

Multiple query words triggers inaccurate result count

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

  • Multiple query words triggers inaccurate result count

    http://psba08.qa.jplhosting.net/districts_policies/c/106/

    Search for "student discipline"

    With "any" or "all" selected, it claims 199 results. However with "any" selected only 80 results are displayed. With "all" selected, 8 results are displayed.

  • #2
    You search function uses a script called, search_result.asp, which is not our script. So we can't really comment on what it is doing. I can only guess that you have customised our script? And now it no longer works as it should.

    Can you revert to using our default script and repeat the test.

    Comment


    • #3
      You are correct... I added this code:

      http://www.wrensoft.com/forum/showthread.php?p=10397

      All "search_results.asp" does is include search.asp (acting as the template).

      I theorized that since
      Code:
      matches = oline
      came after the filtering code that I added, that I wouldn't break the result count by adding a new filter. Apparently this is incorrect?

      Perhaps I have to move my code before
      Code:
                  if (IsFiltered = False) then
                      'if (res_table(1, zoomit) >= full_numwords) then
                      if (res_table(5, zoomit) >= full_numwords) then
                          fullmatches = fullmatches + 1
                      elseif (andq = 1) then
                          ' AND search, filter out non-matching results
                          IsFiltered = True
                      end if
                  end if

      Comment


      • #4
        We can not provide support for custom code changes.

        If you would like us to take a look at the problem, please revert to the default script and let us know if the problem persists using the unmodified script code.
        --Ray
        Wrensoft Web Software
        Sydney, Australia
        Zoom Search Engine

        Comment

        Working...
        X