[Isis-users] Inverted file update from commandline

De Smet Egbert egbert.desmet at ua.ac.be
Sun May 13 16:50:58 CEST 2012


Peter,

if you need to use mx from the command-line, the situation is different : mx does not use, like ABCD, the new.par file in the par-subfolder. With mx you have to add the cipar-parameter to the command, and the cipar-file should exist and refer to the copies-database.

So : create in the data-folder with notepad a file copies.par which reads like :
copies.*=/ABCD/www/bases/new/data/new.*
(note that in such a file you cannot use variables like %path_database%, since you are not in a PHP-environment like ABCD, unless you use Windows-environment variables)

and use the cipar-parameter in the mx-command, e.g. :
mx new cipar=copies.par fst=@ fullinv/ansi=new now -all.

Hope that helps and works !

________________________________________
From: Hessels, Peter [P.Hessels at kit.nl]
Sent: Sunday, May 13, 2012 4:45 PM
To: De Smet Egbert; isis-users at iccisis.org
Subject: RE: Inverted file update from commandline

Hi Egbert,

The REF - function is being used. The database is created from the MARC database. The line in the new.fst is similar to the line in the marc.fst:
999 0 ref->copies(l->copies('CN_'v1), v35)

Without this line the mx command runs smoothly. But I would rather not delete this line: it suppose it is there for a reason.

I have checked the par files. They are identical:
=========================
New.par

new.*=%path_database%new/data/new.*
prologoact.pft=%path_database%www/prologoact.pft
prologo.pft=%path_database%www/prologo.pft
epilogoact.pft=%path_database%www/epilogoact.pft
epilogo.pft=%path_database%www/epilogo.pft
autoridades.pft=%path_database%new/pfts/en/autoridades.pft
copies.*=%path_database%copies/data/copies.*
copies.pft=%path_database%copies/pfts/es/copies.pft
inven.pft=%path_database%copies/pfts/es/inven.pft
loanobject.*=%path_database%loanobjects/data/loanobjects.*
loan.pft=%path_database%loanobjects/pfts/es/loan.pft
trans.*=%path_database%trans/data/trans.*
===============================================
marc.par:
marc.*=%path_database%marc/data/marc.*
prologoact.pft=%path_database%www/prologoact.pft
prologo.pft=%path_database%www/prologo.pft
epilogoact.pft=%path_database%www/epilogoact.pft
epilogo.pft=%path_database%www/epilogo.pft
autoridades.pft=%path_database%marc/pfts/en/autoridades.pft
isisac.tab=%path_database%marc/data/isisac.tab
isisuc.tab=%path_database%marc/data/isisuc.tab
STW=%path_database%marc/data/marc.stw
copies.*=%path_database%copies/data/copies.*
copies.pft=%path_database%copies/pfts/es/copies.pft
inven.pft=%path_database%copies/pfts/es/inven.pft
loanobject.*=%path_database%loanobjects/data/loanobjects.*
loan.pft=%path_database%loanobjects/pfts/es/loan.pft
trans.*=%path_database%trans/data/trans.*
==============================================

What could I have overlooked?

Kind regards,

Peter


-----Oorspronkelijk bericht-----
Van: De Smet Egbert [mailto:egbert.desmet at ua.ac.be]
Verzonden: vrijdag 11 mei 2012 22:40
Aan: Hessels, Peter; isis-users
Onderwerp: RE: Inverted file update from commandline

Is there a REF(L()) function referring to the copies database in the FST used ?
Mx is trying to open that Inverted File and can't find it.

We used such a statement in the MARC-FST and there is works well because in the marc.par the files for the copies-database are referenced.
So either take out that line in the FST or add the copies-database files in the .par of your new database.

Egbert de Smet
IOIW / U&S
Universiteit Antwerpen
________________________________________
From: isis-users-bounces at iccisis.org [isis-users-bounces at iccisis.org] on behalf of Hessels, Peter [P.Hessels at kit.nl]
Sent: Friday, May 11, 2012 10:24 PM
To: isis-users
Subject: [Isis-users] Inverted file update from commandline

Dear all,

I have created a database from the MARC database. For performance reasons I want to to the "inverted file generation" from the command line. This works OK for the MARC database, but for my new database the  mx-commands results in the error message:
Dbxopen: 'copies.cnt'  errorno=2
Fatal: dbxopen/opn.

There are no differences between the marc.fst and the mst for my new database. I have linked the new database to the copies database and I am able to enter copies. Also the marc.par and the new.par are the same.

The commands that I use are:
Mx new fst=@new.fst fullinv/ansi=new
And
Mx marc ft=@marc.fst fullinv/ansi=marc

What could be wrong?

Kind regards,

Peter

_______________________________________________
isis-users mailing list
isis-users at iccisis.org
To manage your own subscription options go to: http://lists.iccisis.org/listinfo/isis-users
Or contact Henk Rutten: hlrutten at xs4all.nl


More information about the isis-users mailing list