Well, perhaps you have already considered this, but a date classifier already performs this function, ordering your documents by date.
Heres an example:
Heres what you need to add to your
classifyDateList -metadata Date
If however, you really want to search by date, there are a number of options that come to mind.
would convert the users selection to 20070203 for the search when the form is submitted. (A better solution than the above)
o Add a new metadata value called maybe "TextDate" when you import your documents and alter your import plugin(s) to parse the 20070203 strings in your existing date metadata and convert them to their more natural human readable equivalents.
So for a document, "Date" might be "20070203" and TextDate might be something like "February 3 2007 Feb 07 third", you could have other language versions of the months too.
You could then build an index on TextDate instead of Date for your search.
o If you have produced your own metadata.xml files you might add TextDate to the import documents in the metadata.xml files, this would mean you wouldnt have to play around with customising plugins.
Hope this helps,
Greenstone Digital Library and Digitisation Specialists
I have a search index on dc.Date. The dates are in the following formats:
1- 2007, 2006, 2005, etc
2- 200701, 200702, 200703, etc
3- 20070101, 20070102, 20070103, etc
All the dates are being displayed using Format Statement [format: dc.Date]
and the result is as under:
1- 2007, 2006, 2005
2- January 2007, February 2007, etc
3- 01 January 2007, 02 January 2007, etc.
Now my users visits the documents by natural way like "February 2007" but they got 0 results because i have entered the date in the above format.
Is there any way to search these dates in simple way
Ata ur Rehman
AHK Resource Center
greenstone-users mailing list