Re: [greenstone-users] Datesearch option possible with mgpp or lucene?

From Katherine Don
DateTue, 26 Jul 2005 16:06:54 +1200
Subject Re: [greenstone-users] Datesearch option possible with mgpp or lucene?
In-Reply-To (42E486BE-9030402-atp-rub-de)
Hi Axel

The date search is hard coded for Coverage metadata (CV). (This date
search stuff was implemented as an honours project, and pretty much
added to greenstone as is, so there are bound to be a few problems with

You will need to either edit the code (mgpp_adddateelem or
lucene_adddateelem in src/recpt/querytools.cpp) to change the index it
is looking for (replace all occurrences of CV with DD and recompile), or
change your index so that the date index is called CV.
To do this edit perllib/ and modify the
static_indexfield_map. This maps metadata names to shortnames used in
the index. map your metadata to CV. I see that Coverage is actually
mapped to CO in this file, so I don't think the datesearch stuff would
work even if you had Coverage metadata !
Once you have edited teh file you will need to rebuild the collection.
In the build.cfg file you should see yourmeta->CV in the indexfieldmap.

Does the date search work now?


schild wrote:
> Hi Katherine,
> actually from my experience I think datesearch ('format QueryInterface
> DateSearch') was specifically implemented for mg and not for mgpp. I
> tried it and in plain search from mode, the date search line appears in
> the user interface. But when I specify a date range for my search query,
> datesearch translates it into the wrong query statement (wrong indices
> 'CV' and not 'DD' as it should be for my collection. In case I am
> missing the option to specify the date index for datesearch can you tell
> me how this is done?
> Thanks,
> Axel
> Katherine Don schrieb:
>> Hi Axel
>> Which datesearch option are you talking about? The one specified by
>> 'format QueryInterface DateSearch' ?
>> As far as I know, this is only available for mgpp collections. It uses
>> form search to achieve the date searching, so cannot be used with mg
>> collections.
>> Regards,
>> Katherine
>> schild wrote:
>>> Hi all,
>>> does anyone have experience with the datesearch option (querying for
>>> documents within a certain time interval). I so that this option
>>> exists for mg search engine. How about mgpp or lucene? Is this alos
>>> possible with field search?
>>> Axel