MetaData search dates
John VanDyk
jvandyk at iastate.edu
Fri Oct 17 12:21:56 PDT 2003
>I'm using the MetaData plug-in (great, by the way) so that I can search
>and index by a handful of keywords, etc. One of the settings is a date
>setting (not the posting date); I need to be able to search for pages
>with dates later than, before, and exactly, an entered date. I'm lost in
>the syntax. How do I set that up? The data type is Date, I assume.
You need to pass in an Attribute Search Engine operator to tell the
plugin that you want your search to be something other than the
default 'contains all' search.
Here's an example that returns titles of all the pages posted after
October 16, 2003, assuming that you have set up postTime as a
date-indexed meta type:
metadatamacros.query("postTime","10/16/03",operator:"greaterThan")
Thank David Detlefsen for adding this capability in mid-May of 2003.
It was in the underlying Attribute Search Engine (written by Seth
Dillingham) all along, we just didn't have a way to call it until
David added it. More information is available on the query macro docs
page:
http://zelotes.ent.iastate.edu/metadata/querymacro
John VanDyk
More information about the Frontier-Users
mailing list