Re: [greenstone-devel] Using MGPP

From Katherine Don
DateThu, 16 Feb 2006 14:20:18 +1300
Subject Re: [greenstone-devel] Using MGPP
In-Reply-To (20060216011730-96E9181-mailserv01-ait-ac-th)
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.

Regards,
katherine

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 import.pl and
> buildcol.pl 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 [mailto:kjdon@cs.waikato.ac.nz]
> Sent: Thursday, February 16, 2006 4:48
> To: st102416
> Cc: greenstone-devel@list.scms.waikato.ac.nz
> 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!
>>
>>vd
>>
>>
>>------------------------------------------------------------------------
>>
>>_______________________________________________
>>greenstone-devel mailing list
>>greenstone-devel@list.scms.waikato.ac.nz
>>https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-devel
>
>
>
>