Skip to main content.
home | support | download

Back to List Archive

Re: Changed behaviour of merge?

From: <jmruiz(at)not-real.boe.es>
Date: Tue May 22 2001 - 18:28:16 GMT
Hi,

Mmm, remove -c from the command line and try once again.

swish-e -M file1 file2 filetot

(-c is not needed when merging files)

Merge uses the information stored in the header of the files (file1 
and file2).

Anyway, -c must be ignored when -M is used. So, probably there is a 
bug while reading the command line options. We must check it.

cu
jose


On 22 May 2001, at 7:03, Stefan Bergstrand wrote:



> 
> 
> Has merging changed somewhere between 2.0.5 and 2.1-dev20? In 2.0.5 i
> set "IndexName polopolyindex" in swish.conf, I could then merge two
> indexes into one using:
> 
> swish-e -c /.../swish.conf -M /.../133/polopolyindex
> /.../132/polopolyindex /.../104/polopolyindex
> 
> and have the combined indexes for 133 and 132 in 104. But when I try
> this with 2.1-dev20, I get the following (the lines starting with
> "Stefan" comes from the line 
> 
>  printf("Stefan: 1 = %s, 2 = %s, res = %s\n", file1, file2, outfile); 
> 
> which I added on line 71 in merge.c:
> 
> 
> 
> Stefan: 1 = /.../133/polopolyindex, 2 = /.../132/polopolyindex, res =
> /var/tmp/swmeYBpP2z Opening and reading file 1 header... Opening and
> reading file 2 header... Counting files... 2 files.
> 
> Reading file 1 info ...
> Reading file 2 info ...
> Creating output file ... 
> Merging words... 13 redundant words.
> 
> Printing header... 
> Printing words... 
> Writing index entries ...
> Sorting Words alphabetically
> Writing stopwords ...
> Writing buzzwords ...
> 
> Merging file info... no redundant files.
> Writing file offsets ...
> Writing MetaNames ...
> Writing Location lookup tables ...
> 
> Done.
> Stefan: 1 = /var/tmp/swmeYBpP2z, 2 = /.../104/polopolyindex, res =
> index.swish-e Opening and reading file 1 header... Opening and reading
> file 2 header... err: Couldn't read the index file
> "/.../104/polopolyindex". .
> 
> 
> What is going on?
> 
> 
> /Stefan Bergstrand
> 
> 
> -- 
> Stefan Bergstrand
> Polopoly AB (publ)
> Tel: + 46 8 506 782 67
> Mobile: + 46 70 447 82 67
> mailto:stefan.bergstrand@polopoly.com
> 
Received on Tue May 22 18:30:03 2001