RE: [greenstone-devel] Using MGPP

From st102416
DateThu, 16 Feb 2006 08:33:56 +0700
Subject RE: [greenstone-devel] Using MGPP
In-Reply-To (43F3D352-2070007-cs-waikato-ac-nz)
Thank you very much. Now, I try to use the gdbm package to get these


-----Original Message-----
[] On Behalf Of
Katherine Don
Sent: Thursday, February 16, 2006 8:20
To: st102416
Subject: Re: [greenstone-devel] Using MGPP

Yes, the index/text/test.ldb file is the gdbm database.
If you run setup.bat (or source setup.bash) in the greenstone directroy,
you can run
db2txt test.ldb > out.txt
And out.txt will show you the contents of the gdbm database so you can
get an idea about what is in there.


st102416 wrote:
> Hi Katherine,
> Thank for your reply. In my case, collections are build in Greenstone and
> used MGPP to search information. I try to use the gdbm package but it
> requires the gdbm database that I can not find.
> In order to import resources to a collection, I used and
> programs which are executed as a function in my project. After
> these processes, is the gdbm database created? And where is it stored? I
> only found the file with ldb extension (ex: test.ldb) stored in text
> directory of corresponding collection. Is this file the gdbm database?
> Thank,
> vd
> -----Original Message-----
> From: Katherine Don []
> Sent: Thursday, February 16, 2006 4:48
> To: st102416
> Cc:
> Subject: Re: [greenstone-devel] Using MGPP
> Hi
> In a greenstone collection, we use mgpp/mg to index and store the text,
> and gdbm to store the metadata.
> mgpp uses document numbers 1, 2, 3 while greenstone uses document ids
> HASHxxx etc. the gdbm database provides a mapping between mgpp document
> numbers and greenstone numbers, and also stores all the metadata such as
> filenames.
> If you are building a collection using greenstone, then you can get the
> filename from the gdbm database. If you are using mgpp independently of
> greenstone, you will need to provide a mapping yourself.
> For example, you might store a list of mgpp numbers and corresponding
> filenames. Or you might want to store the filename as the first part of
> the compressed text, or you might create two sets of compressed text -
> one stores the doc content, the other stores the filename. Then you can
> retrieve the filename usign the search results by just doing getDocument
> on the other compressed text.
> Regards,
> Katherine
> st102416 wrote:
>>Hi everyone,
>>I am a master student of Information Management. My thesis is to build a
>>e-learning system in which I used GSDL as a component to store learning
>>materials. In order to search information, I used MGPP package.
>>My question is how can I get filenames of searched result? I also used
>>getDocument() function, but it returns all contents of document.
>>Can everyone help me or suggest other ways to sovle this proplems?
>>Thank very much!
>>greenstone-devel mailing list

greenstone-devel mailing list