From: Wolfgang M. <wol...@ex...> - 2004-06-16 15:02:55
|
Hi, I added your patch to the CVS and today's snapshot. Thanks. Wolfgang On Monday 14 June 2004 12:38, S=C3=A9bastien GRIMARD wrote: > After testing, it seems there was a bug in the near function concerning > the distance computation that would make some words to be ignored (in > your case the second lake was ignored in the search). It also seems the > definition of the maximum distance was also off by one (I'm not sure > about that one) > > I have included a patch for wolfgang to correct the cvs. > > > S=C3=A9bastien GRIMARD > > Le ven 11/06/2004 =C3=A0 17:06, John Dolce a =C3=A9crit : > > Hello. > > Just so you don't think I'm crazy, I tried again by cutting down the the > > document even more, and I typed it in from scratch to ensure there are = no > > special characters or carraige returns. With this new XML: > > > > <?xml version=3D"1.0" encoding=3D"UTF-8"?> > > <test1> > > Lake Calumet and Lake Michigan, the > > </test1> > > > > I get a hit with: > > > > //test1[near(.,'Lake Calumet')]//test1 > > > > But not with: > > > > //test1[near(.,'Lake Michigan')]//test1 > > > > near(.'Lake Michigan',2) does work but it is not an appropriate solution > > because it will mess up other queries. I also notice the documentation > > says: > > > > Like &=3D, near() accepts wildcards in the keyword string. As well, > > punctuation and whitespace will be skipped according to the default > > tokenization rules. > > > > So, I would think the comma after Michigan should not affect the query, > > but it looks like it does. Any help is much appreciated. This is maki= ng > > me want to go jump in Lake Michigan! > > > > John Dolce > > > > > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by the new InstallShield X. > > > > >From Windows to Linux, servers to mobile, InstallShield X is the > > > > one installation-authoring solution that does it all. Learn more and > > evaluate today! http://www.installshield.com/Dev2Dev/0504 > > _______________________________________________ > > Exist-open mailing list > > Exi...@li... > > https://lists.sourceforge.net/lists/listinfo/exist-open =2D-=20 Wolfgang Meier Darmstadt University of Technology Tel.: +49 (0) 06151 16 4458 ICQ: #296595621 http://exist-db.org http://www.sozionet.org |