PassMark Logo
Home » Forum

Announcement

Collapse
No announcement yet.

Query to return the five most recent documents to the index.

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

  • Query to return the five most recent documents to the index.

    The idea is to return the documents last added to the index without having to modify mega tags.

    One thought would be to add a keyword identifying the week the document was added. The query '11012007' would return all documents added that week. One downside users would have to know the most recent term.

    Surely someone can suggest a better solution.

    Steve

    Redmond, Wa

  • #2
    If your most recently added files were created/modified recently (presumably this would be the case if they were not already in the index), then the last-modified date of the file should already allow them to appear as the most recent files when you Sort by Date.

    Note that Zoom will use the Last-Modified meta tag when available, but if they are not present on the page, Zoom will look at the last-modified date that the web server returns (if using Spider Mode), or the date according to the filesystem (if using Offline Mode).

    If your last-modified date (either on disk, or in the meta tag) does not correspond to it being new (eg. you are adding old documents to the index), then I can't think of any way to bring them up without using a method such as what you describe... but by doing that (adding a keyword to the document), you would be changing the file's last-modified date anyway, so essentially, that would be the same effect, and you could simply "touch" the files you plan to add so that their last-modified tags reflect their new status.
    --Ray
    Wrensoft Web Software
    Sydney, Australia
    Zoom Search Engine

    Comment


    • #3
      How do you add Last-Modified Meta Tag to PDF?

      How do you add Last-Modified Meta Tag to PDF?

      Comment


      • #4
        Originally posted by smarsh02 View Post
        How do you add Last-Modified Meta Tag to PDF?
        I do this using Zoom's .desc file facility.

        Comment


        • #5
          Your web server should automatically add Last-Modified information into the HTTP header (based on the file system date and time) for the PDF file, and all other files. At least most web servers do this.

          For example, here are the HTTP headers for our PDF Users Guide.

          ========
          HTTP/1.1 200 OK
          Date: Sat, 03 Nov 2007 22:35:38 GMT
          Server: Apache/2.2.4
          Last-Modified: Fri, 21 Sep 2007 08:08:55 GMT
          ETag: "5ee96e-29e7fb-c835f3c0"
          Accept-Ranges: bytes
          Content-Length: 2746363
          Connection: close
          Content-Type: application/pdf
          =========

          But you can use .desc files to override this file system date.

          Comment


          • #6
            Index returning title correctly but not date?

            Index returning title correctly but not date from desc file.

            <title>PSA Lake Washington Membership Application</title>
            <meta name="description" content=" Chapter Membership Application">
            <meta name="keywords" content="SHOWALL"
            <meta http-equiv="Last-Modified" content="Sun, 04 Nov 2007 23:59:59">

            Any thoughts!

            Comment


            • #7
              Missing &quot;&gt;&quot;- Fixed. Date is now correct!

              Missing ">"- Fixed. Date is now correct!

              Comment

              Working...
              X