From alex at acatysmoof.com Mon May 1 09:56:52 2006 From: alex at acatysmoof.com (Alex Teslik) Date: Mon May 1 09:57:03 2006 Subject: [Namazu-users-en] mknmz broken? Message-ID: <20060501005013.M78352@acatysmoof.com> I tried searching the lists, but didn't find this... I upgraded my namazu to the latest namazu2-2.0.16 via FreeBSD ports. It was working fine, but now mknmz is dying with this error: [root]/home/alex/example.com/archive# /usr/local/bin/mknmz --check-filesize --update=./search --output-dir=./search --template-dir=./search/templates ./html Use of uninitialized value in split at /usr/local/bin/mknmz line 1149. Use of uninitialized value in chdir at /usr/local/bin/mknmz line 1153. Use of chdir('') or chdir(undef) as chdir() is deprecated at /usr/local/bin/mknmz line 1153. Use of uninitialized value in concatenation (.) or string at /usr/local/bin/mknmz line 1154. Usage: mknmz [options] ... Try `mknmz --help' for more information. I opened up mknmz, but a quick glance didn't find the error. Ideas? I did find a different error though - the line: sub process_file ($$$$$$) { should be: sub process_file ($$$$$$$) { The number of prototypes is wrong, based on what @_ gets assigned to in the next line. Thanks, Alex From yw3t-trns at asahi-net.or.jp Mon May 1 12:47:43 2006 From: yw3t-trns at asahi-net.or.jp (Tadamasa Teranishi) Date: Mon May 1 12:45:53 2006 Subject: [Namazu-users-en] Re: mknmz broken? References: <20060501005013.M78352@acatysmoof.com> Message-ID: <445584DF.6D1DBE37@asahi-net.or.jp> Alex Teslik wrote: > > I upgraded my namazu to the latest namazu2-2.0.16 via FreeBSD ports. It was > working fine, but now mknmz is dying with this error: > > [root]/home/alex/example.com/archive# /usr/local/bin/mknmz --check-filesize > --update=./search --output-dir=./search --template-dir=./search/templates ./html You are specifying --update option. Therefore, the index file should exist in ./search. Was --update option specified though the index did not exist in ./search ? Or, the index of ./search might be broken. Please execute mknmz once without --update option. > I did find a different error though - the line: > > sub process_file ($$$$$$) { > > should be: > > sub process_file ($$$$$$$) { > > The number of prototypes is wrong, based on what @_ gets assigned to in the > next line. Yes. However, it doesn't relate to this case. -- ===================================================================== TADAMASA TERANISHI yw3t-trns@asahi-net.or.jp http://www.asahi-net.or.jp/~yw3t-trns/index.htm Key fingerprint = 474E 4D93 8E97 11F6 662D 8A42 17F5 52F4 10E7 D14E From jpsp at megamail.pt Thu May 11 17:49:46 2006 From: jpsp at megamail.pt (jpsp) Date: Thu May 11 17:49:51 2006 Subject: [Namazu-users-en] question about multiple indexes - ".namazurc" Message-ID: <8868.193.136.44.30.1147337386.megamail@www.megamail.pt> Hello all, Is there any way to tell "namazu.cgi", on the ".namazurc" configuration file, to search multiple indexes? I'm using namazu to search mhonarc archives. These archives have sub-archives, normally by month. Some archives are quite big, and "namazu" is taking almost an hour each day do process each of those big archives, even using the update-index option. Maybe there's some optimization than still can be done, but apart from that, the natural solution seems to be having an index by each monthy sub-archive, and telling "namazu.cgi" to use these indexes, without the user having to select all the archives on the HTML form Thanks, Jo?o Pagaime From yw3t-trns at asahi-net.or.jp Fri May 12 02:12:49 2006 From: yw3t-trns at asahi-net.or.jp (Tadamasa Teranishi) Date: Fri May 12 02:13:24 2006 Subject: [Namazu-users-en] Re: question about multiple indexes - ".namazurc" References: <8868.193.136.44.30.1147337386.megamail@www.megamail.pt> Message-ID: <44637091.1E3FDCD2@asahi-net.or.jp> jpsp wrote: > > Is there any way to tell "namazu.cgi", on > the ".namazurc" configuration file, to > search multiple indexes? The method of using two or more indices (64 or less) is being written here. http://www.namazu.org/doc/manual.html.en#form-idxnames It only has to use two or more indices in default and to use "hidden" for effective. ex. -- ===================================================================== TADAMASA TERANISHI yw3t-trns@asahi-net.or.jp http://www.asahi-net.or.jp/~yw3t-trns/index.htm Key fingerprint = 474E 4D93 8E97 11F6 662D 8A42 17F5 52F4 10E7 D14E From jpsp at megamail.pt Fri May 12 22:55:14 2006 From: jpsp at megamail.pt (jpsp) Date: Fri May 12 22:55:21 2006 Subject: [Namazu-users-en] Re: question about multiple indexes - ".namazurc" In-Reply-To: <44637091.1E3FDCD2@asahi-net.or.jp> References: <8868.193.136.44.30.1147337386.megamail@www.megamail.pt> <44637091.1E3FDCD2@asahi-net.or.jp> Message-ID: <10348.193.136.44.30.1147442114.megamail@www.megamail.pt> Great! Thanks for the answer. I did find that piece of information about the HTML form, but didn't realize the "hidden" proprety does the trick. Meanwhile I've come up with a method that seems to take much less time for "mknmz" to go over the monthy sub-archives. The method is simple: instead of processing every day, all the monthy sub-archives, just process the most recent two sub-archives. There's no point anyway in going over the old sub-archives because they are static. The trick, new to me, is to use the "--no-delete" primitive of "mknmz" when targeting the two most recent monthy sub-archives. I think I'm off the hook because now "mknmz" is taking less than a hour to run, instead of 2 hours, each isn't very practical for my setup Thanks again, Jo?o Pagaime > jpsp wrote: >> >> Is there any way to tell "namazu.cgi", on >> the ".namazurc" configuration file, to >> search multiple indexes? > > The method of using two or more indices (64 or less) is being written > here. > > http://www.namazu.org/doc/manual.html.en#form-idxnames > > It only has to use two or more indices in default and to use "hidden" > for effective. > > ex. > > > > -- > ===================================================================== > TADAMASA TERANISHI yw3t-trns@asahi-net.or.jp > http://www.asahi-net.or.jp/~yw3t-trns/index.htm > Key fingerprint = 474E 4D93 8E97 11F6 662D 8A42 17F5 52F4 10E7 D14E > > _______________________________________________ > Namazu-users-en mailing list > Namazu-users-en@namazu.org > http://www.namazu.org/cgi-bin/mailman/listinfo/namazu-users-en > From yw3t-trns at asahi-net.or.jp Fri May 12 23:35:13 2006 From: yw3t-trns at asahi-net.or.jp (Tadamasa Teranishi) Date: Fri May 12 23:35:49 2006 Subject: [Namazu-users-en] Re: question about multiple indexes - ".namazurc" References: <8868.193.136.44.30.1147337386.megamail@www.megamail.pt> <44637091.1E3FDCD2@asahi-net.or.jp> <10348.193.136.44.30.1147442114.megamail@www.megamail.pt> Message-ID: <44649D21.8F39EFCF@asahi-net.or.jp> jpsp wrote: > > Meanwhile I've come up with a method that seems to take > much less time for "mknmz" to go over the monthy sub-archives. It is user's freedom to the last which each directory to make the index. Namazu Project doesn't direct what index you make from MHonArc in any way. Those contents do not confirm Namazu Project at all though something to use Namazu on the MHonArc side seems to be prepared. Please inquire it of MHonARC when it is use. -- ===================================================================== TADAMASA TERANISHI yw3t-trns@asahi-net.or.jp http://www.asahi-net.or.jp/~yw3t-trns/index.htm Key fingerprint = 474E 4D93 8E97 11F6 662D 8A42 17F5 52F4 10E7 D14E From vze26m98 at optonline.net Mon May 22 21:57:06 2006 From: vze26m98 at optonline.net (Charles Turner) Date: Mon May 22 21:57:15 2006 Subject: [Namazu-users-en] Index update trouble... Message-ID: Greetings- I successfully built a namazu (2.0.14) index for a monharc database last August, and now I'm updating the database. Things seemed to go well, but now namazu can't find any results when I search. The database is here: I added to the August indexes with the following command: ../../bin/mknmz --mhonarc --no-delete --output-dir=./indexes/msann-index --replace='s#/home/.talita/vatic/propheticdesire.us/#http://www. propheticdesire.us/#' ./html/ann-2005/2005-08/*.html Namazu produced the following output: Looking for indexing files... 73 files are found to be indexed. 1/73 - http://www.propheticdesire.us/microsound/html/ann-2005/2005-08/maillist. html is not a MHonArc message file! skipped. 1/72 - http://www.propheticdesire.us/microsound/html/ann-2005/2005-08/msg00000. html [text/html; x-type=mhonarc] 2/72 - http://www.propheticdesire.us/microsound/html/ann-2005/2005-08/msg00001. html [text/html; x-type=mhonarc] (skipped...) 72/72 - http://www.propheticdesire.us/microsound/html/ann-2005/2005-08/threads. html is not a MHonArc message file! skipped. Wide character in print at ../../bin/mknmz line 2447, line 2482. Wide character in print at ../../bin/mknmz line 2447, line 3999. Wide character in print at ../../bin/mknmz line 2447, line 3999. Wide character in print at ../../bin/mknmz line 2447, line 7844. Wide character in print at ../../bin/mknmz line 2447, line 7844. Wide character in print at ../../bin/mknmz line 2447, line 7945. Wide character in print at ../../bin/mknmz line 2447, line 8112. Wide character in print at ../../bin/mknmz line 2447, line 8153. Wide character in print at ../../bin/mknmz line 2447, line 10430. Wide character in print at ../../bin/mknmz line 2447, line 12798. Wide character in print at ../../bin/mknmz line 2447, line 12798. Wide character in print at ../../bin/mknmz line 2447, line 13735. Wide character in print at ../../bin/mknmz line 2447, line 16128. Wide character in print at ../../bin/mknmz line 2447, line 16361. Wide character in print at ../../bin/mknmz line 2447, line 18713. Wide character in print at ../../bin/mknmz line 2447, line 18969. Wide character in print at ../../bin/mknmz line 2447, line 20528. Wide character in print at ../../bin/mknmz line 2447, line 22364. Wide character in print at ../../bin/mknmz line 2475, line 27698. Wide character in print at ../../bin/mknmz line 2475, line 27698. Wide character in print at ../../bin/mknmz line 2475, line 27698. Wide character in print at ../../bin/mknmz line 2475, line 27698. Wide character in print at ../../bin/mknmz line 2475, line 27698. Wide character in print at ../../bin/mknmz line 2475, line 27698. Wide character in print at ../../bin/mknmz line 2475, line 27698. Wide character in print at ../../bin/mknmz line 2475, line 27698. Writing index files... [Append] Date: Mon May 22 04:49:25 2006 Added Documents: 71 Size (bytes): 426,216 Total Documents: 367 Added Keywords: 4,684 Total Keywords: 32,382 Time (sec): 10 File/Sec: 7.10 System: linux Perl: 5.008004 Namazu: 2.0.14 The previous version of Perl was 5.006001. Trying a search (for the word "onda") from the Linux command line: [pico]$ ../../bin/namazu -d onda indexes/msann-index namazu(debug): NAMAZUNORC: '' namazu(debug): -n: 20 namazu(debug): -w: 0 namazu(debug): query: [onda] namazu(debug): Index name [0]: indexes/msann-index namazu(debug): set_phrase_trick: onda namazu(debug): set_regex_trick: onda namazu(debug): query.tokennum: 1 namazu(debug): query.tab[0]: onda namazu(debug): size of indexes/msann-index/NMZ.t: 1468 namazu(debug): before nmz_strlower: [onda] namazu(debug): after nmz_strlower: [onda] namazu(debug): do WORD search namazu(debug): size of indexes/msann-index/NMZ.ii: 129528 namazu(debug): l:0: ! namazu(debug): r:32381: ible namazu(debug): searching: and namazu(debug): searching: d: namazu(debug): searching: dio?. namazu(debug): searching: namazu(debug): searching: innipeg namazu(debug): searching: @xxxxxxxxxxxxxxxx namazu(debug): searching: namazu(debug): searching: ???????, namazu(debug): searching: . namazu(debug): searching: namazu(debug): searching: ???o??????? namazu(debug): searching: ??? namazu(debug): searching: namazu(debug): searching: ????????????? namazu(debug): searching: ???????? Results: References: [ onda: 0 ] No document matching your query. I've tried to garbage collect and rebuild the indexes to no avail. Now I'm stumped. Any thoughts on how to proceed? Best and thanks! Charles Turner From yw3t-trns at asahi-net.or.jp Mon May 22 23:36:59 2006 From: yw3t-trns at asahi-net.or.jp (Tadamasa Teranishi) Date: Mon May 22 23:37:12 2006 Subject: [Namazu-users-en] Re: Index update trouble... References: Message-ID: <4471CC8B.1457C5BE@asahi-net.or.jp> Charles Turner wrote: > > I successfully built a namazu (2.0.14) index for a monharc database last > August, and now I'm updating the database. Things seemed to go well, but > now namazu can't find any results when I search. Use Namazu 2.0.16. The version before Namazu 2.0.15 should not be used. -- ===================================================================== TADAMASA TERANISHI yw3t-trns@asahi-net.or.jp http://www.asahi-net.or.jp/~yw3t-trns/index.htm Key fingerprint = 474E 4D93 8E97 11F6 662D 8A42 17F5 52F4 10E7 D14E From darren at dcook.org Mon May 29 08:11:37 2006 From: darren at dcook.org (Darren Cook) Date: Mon May 29 08:11:54 2006 Subject: [Namazu-users-en] PHP5 module Message-ID: <447A2E29.9080803@dcook.org> I've used namazu on a couple of fairly big sites, from PHP4, using this module: http://www.koderz.org/index.php?id=395 However this has not been updated in a long time (e.g. the install example is for php 4.1.1 :-). Is anyone working on a PHP5 module? Or does the above PHP4 module still work in PHP5? Darren From knok at daionet.gr.jp Mon May 29 17:38:48 2006 From: knok at daionet.gr.jp (NOKUBI Takatsugu) Date: Mon May 29 17:38:51 2006 Subject: [Namazu-users-en] Re: PHP5 module In-Reply-To: <447A2E29.9080803@dcook.org> References: <447A2E29.9080803@dcook.org> Message-ID: <87mzd1mdif.wl%knok@daionet.gr.jp> At Mon, 29 May 2006 08:11:37 +0900, Darren Cook wrote: > Is anyone working on a PHP5 module? Or does the above PHP4 module still > work in PHP5? I'm not the author of the module, but I heard he stopped to develop the module because of license issue (GPL vs BSDL ad clause). -- NOKUBI Takatsugu E-mail: knok@daionet.gr.jp knok@namazu.org / knok@debian.org