From: <el...@gm...> - 2005-10-28 21:07:15
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Wolfgang Meier skrev: >>>When the $some-term keywords consists of a single keyword, it fails. >>>It used to not fail on snapshot 20050805. However when the keywords >>>consist of multiple keywords (more than 1), it works. >> >>But why would you ever want to pass a single keyword to "near"? I don't see >>how that can be a sensible thing to do. I can see this would make sense if >>$some-term had the value "John Doe", but then that's not a single term. If >>eXist's near() did indeed use to return matches when near() was fed a single >>token as its second parameter instead of the string of tokens that its >>signature specifies, that would be a pretty bad bug; and code reliant on >>bugs is always doomed. > > > I'm not sure I understand you here, Michael. I would indeed regard it > as a bug if near(., "John") stopped returning matches while near(., > "John Doe") does ... I agree fully with Michael here. This one token use of near() is neither syntactically nor semantically acceptable. Leif-Jöran -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFDYpLrhcIn5aVXOPIRAg/+AJ0Zv2SQ3YF3CNPGhPZVAetr0yL/NwCfcPC7 kp1KXSdVlNxZJbBi5UFKt3A= =c2Nv -----END PGP SIGNATURE----- |