- - - - - - - - - - - - - - - - - - - - - - - - - - - -
Name: BubbaQ
Subject: Override last-modified date

I have a collection of documents on my website that are from several different 
sources and formats.  When I get them, I extract all the pure text, store it in 
a separate file named "document_no.text" where "document_no" is the sequential 
number I use to name the documents... these files I create are simplified HTML 
with several meta tags, and then the plain text of the document in the body.  I 
have DataParkSearch index only the *.text files, and use an alias to point each 
url to my php link that processes the files from whatever format they are in to 
present them to the browser, so that search indexes 
"file:///htmldocs/12345.text" and the URL will be  
"http://www.site.com/getdoc.php?docno=12345"; in the search results.

This all works perfectly, except for sorting by date.  When sorting by date, I 
need the sort to be by the date the original document was issued, not the 
"last-modified" date.  I have a meta tag in the .text file that has the 
document's original issue date, and I can print it out in the search results 
using $(meta.originaldate).

I converted to DataParkSearch from mnoGoSearch because of your superior bool 
handling (NEAR and *) but I really miss the user.date feature from mnoGoSearch. 
 Is there any way to either:

  - sort on a meta tag   or
  - override the "last-modified" date stored in the database with a meta tag.
- - - - - - - - - - - - - - - - - - - - - - - - - - - -

Read the full topic here:
http://www.dataparksearch.org/cgi-bin/simpleforum.cgi?fid=02;post=

Ответить