PassMark Logo
Home » Forum

Announcement

Collapse
No announcement yet.

Problem: sort by date with wildcard character asterisk '*'

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

  • Problem: sort by date with wildcard character asterisk '*'

    Hi

    When I search using wildcard character '*’, the sort by date function is not working, do you know why?

    Can you tell me how to fix this problem?

    We are using Zoom4.0-Pro /ASP version.

    Cheers

    Lenin

  • #2
    I did some quick testing and it seems to work OK (at least for the PHP version).

    Compare these two searches, the 1st one is sorted by date, the 2nd one is sorted by relevance.

    http://www.wrensoft.com/search.php?zoom_query=log%2A&zoom_page=1&zoom_per_ page=10&zoom_cat=-1&zoom_and=0&zoom_sort=1

    http://www.wrensoft.com/search.php?zoom_query=log%2A&zoom_page=1&zoom_per_ page=10&zoom_cat=-1&zoom_and=0&zoom_sort=0

    The results seem to be correct.

    I don't have a good example of a ASP site that has date sorting active and which is displaying dates in the results right now, so maybe you can provide a couple of example URLs showing the problem.

    ------
    David

    Comment


    • #3
      I checked the results on your site [URL supplied privately]. All your pages appear to pages created on the fly by your snDescription.asp script.

      Becuase all the pages are created on the fly, their creation date and time will always be the same as the current date and time.

      Just to be sure I downloaded and saved the HTTP headers returned from your server.

      HTTP/1.1 200 OK
      Server: Microsoft-IIS/5.0
      Date: Tue, 31 May 2005 23:10:59 GMT
      X-Powered-By: ASP.NET
      Connection: Keep-Alive
      Content-Length: 20368
      Content-Type: text/html
      Set-Cookie: ASPSESSIONIDACQRSCAB=EMIJNMACCDFFAADLLEOPPOKM; path=/
      Cache-control: private

      and did the same for another page a couple of minutes later,

      HTTP/1.1 200 OK
      Server: Microsoft-IIS/5.0
      Date: Tue, 31 May 2005 23:13:07 GMT
      X-Powered-By: ASP.NET
      Connection: Keep-Alive
      Content-Length: 23097
      Content-Type: text/html
      Set-Cookie: ASPSESSIONIDACQRSCAB=CNIJNMACNOJLELOHMHDGHLHO; path=/
      Cache-control: private

      As you can see the date is just the current date.

      So sorting by date will not work on your site. At least not the way you are using it. Maybe you can change your snDescription.asp script to modify the HTTP headers to return a more meaningful date.

      -----
      David

      Update:
      In V5 of Zoom you can also use the Last-Modified meta tag to specify a documents date. An example is,
      <meta http-equiv="Last-Modified" content="Sat, 07 Apr 2001 00:58:08 GMT">
      More details are in the users guide.

      Comment

      Working...
      X