UdmSearch: DeleteNoServer still broken in 3.1.9

2001-01-29 Thread Caffeinate The World
i reported this back in 3.1.9pre13. i have 'DeleteNoServer no' set with many URL's in my sql db not having associated Server commands. here i just tried to reindex and i see that my URL is being deleted: # indexer -m -s 200 Indexer[2397]: indexer from mnogosearch-3.1.9/PgSQL started with '/usr/lo

Re: UdmSearch: DeleteNoServer still broken in 3.1.9

2001-01-30 Thread Alexander Barkov
That's strange. I've tested your indexer.conf. Everything works fine. indexer does not delete this URL. Caffeinate The World wrote: > > i reported this back in 3.1.9pre13. i have 'DeleteNoServer no' set with many > URL's in my sql db not having associated Server commands. here i just tried to

Re: UdmSearch: DeleteNoServer still broken in 3.1.9

2001-01-30 Thread Caffeinate The World
not so over here. maybe there is something that is different. see my later postings where i found the lines where it should have tested for delete_no_server. --- Alexander Barkov <[EMAIL PROTECTED]> wrote: > That's strange. I've tested your indexer.conf. Everything works fine. > indexer does not

Possible Fix? (Re: UdmSearch: DeleteNoServer still broken in 3.1.9)

2001-01-30 Thread Caffeinate The World
alex or serge, could you look over this patch? i believe this patch should fix this problem described below: ---cut--- # diff -ru indexer.c.orig indexer.c --- indexer.c.orig Tue Jan 30 10:45:03 2001 +++ indexer.c Tue Jan 30 10:47:29 2001 @@ -368,7 +368,7 @@ } /* Find corre

Re: Possible Fix? (Re: UdmSearch: DeleteNoServer still broken in 3.1.9)

2001-01-30 Thread Caffeinate The World
oops that didn't work. but i'm pretty sure we need to test for the condition of delete_no_server here. i also tried: /* Find correspondent Server record from indexer.conf */ if(!(CurSrv=UdmFindServer(Indexer->Conf,Doc->url,aliastr))){ if(Indexer->Conf->csrv->delete_no_server){ UdmLo

Re: Possible Fix? (Re: UdmSearch: DeleteNoServer still broken in 3.1.9)

2001-01-30 Thread Alexander Barkov
This patch will not fix the problem. The problem is not here. "DeleteNoServer no" is implemented via adding one virtual emtpy server after loading indexer.conf. It means that if there is no other correspondent Server or Realm commands for some URL, indexer will find the last one empty server and

Re: Possible Fix? (Re: UdmSearch: DeleteNoServer still broken in 3.1.9)

2001-01-30 Thread Caffeinate The World
# ./indexer -ma -u http://www.mnpage.com/% AddServer 'http://www.state.mn.us/' 17 AddServer 'http://www.mnworkforcecenter.org/' 17 AddServer 'http://www.exploreminnesota.com/' 17 AddServer 'http://www.tpt.org/' 17 AddServer 'http://www.gorp.com/gorp/location/mn/mn.htm' 17 AddServer 'http://lists.r

Re: Possible Fix? (Re: UdmSearch: DeleteNoServer still broken in 3.1.9)

2001-01-30 Thread Alexander Barkov
Well, indexer.conf is loaded as expected. Now find this in UdmFindServer() : for(i=0;inservers;i++){ int res; regmatch_t subs[NS]; and insert here: printf("%d '%s' %d\n",i,Conf->Server[i].

Re: Possible Fix? (Re: UdmSearch: DeleteNoServer still broken in 3.1.9)

2001-01-31 Thread Caffeinate The World
# ./indexer -ma -n 1 -u http://www.mnpage.com/% AddServer 'http://www.state.mn.us/' 17 AddServer 'http://www.mnworkforcecenter.org/' 17 AddServer 'http://www.exploreminnesota.com/' 17 AddServer 'http://www.tpt.org/' 17 AddServer 'http://www.gorp.com/gorp/location/mn/mn.htm' 17 AddServer 'http://li

Re: Possible Fix? (Re: UdmSearch: DeleteNoServer still broken in 3.1.9)

2001-01-31 Thread Caffeinate The World
--- Caffeinate The World <[EMAIL PROTECTED]> wrote: > # ./indexer -ma -n 1 -u http://www.mnpage.com/% > AddServer 'http://www.state.mn.us/' 17 > AddServer 'http://www.mnworkforcecenter.org/' 17 > AddServer 'http://www.exploreminnesota.com/' 17 > AddServer 'http://www.tpt.org/' 17 > AddServer 'htt

Re: Possible Fix? (Re: UdmSearch: DeleteNoServer still broken in 3.1.9)

2001-02-01 Thread Alexander Barkov
Hello! Please find a patch which fixes "DeleteNoServer no" command incorrect behaviour. Patch against server.c Thanks for help in debugging! Caffeinate The World wrote: > > --- Caffeinate The World <[EMAIL PROTECTED]> wrote: > > # ./indexer -ma -n 1 -u http://www.mnpage.com/% > > AddSe