From: Giulio V. <g.v...@sa...> - 2004-06-10 15:17:05
|
<P>Try </P> <P>document()[near(bioghist , 'Lake Michigan',2) ]//bioghist<BR></P> <P>I think the problem is the carriage return or line feed<BR><BR>----- Original Message -----<BR>From: John Dolce<BR>To: exi...@li...<BR>Sent: Thu, 10 Jun 2004 09:37:17 -0500<BR>Subject: [Exist-open] No match problem in XQuery<BR><BR>When I use the following XQuery<BR>><BR>>document()[near(bioghist , 'Lake Michigan') ]//bioghist<BR>><BR>>on the following XML document in the eXist database I do not get any <BR>>results.<BR>><BR>><?xml version="1.0" encoding="UTF-8"?><BR>><bioghist><BR>> <p>Recognized today as the first planned industrial town in the United <BR>>States, the model community of Pullman, Illinois, was conceived by railroad <BR>>car magnate George Pullman for his Chicago Palace Car Company's Chicago <BR>>Works factory and its laborers, whose residence in the town was a condition <BR>>of employment. Sited on four thousand acres between Lake Calumet and Lake <BR>>Michigan, the town was designed by Chicago architect Solon Spencer Beman and <BR>>landscaped by Nathan Bennett. Construction began in 1881 and included <BR>>factory and administration buildings, as well as housing, stores, and public <BR>>buildings for as many as 10,000 residents. Pullman was annexed to the City <BR>>of Chicago in 1889.<BR>></p><BR>></bioghist><BR>><BR>><BR>>However, when I use this query<BR>><BR>>document()[near(bioghist , 'Lake Calumet') ]//bioghist<BR>><BR>>I get it back as a result. Why does the Lake Michigan phrase not match? Is <BR>>it because of the comma? Lake Michigan? and Lake Michigan* do not work <BR>>either. Thanks in advance,<BR>><BR>>John Dolce<BR>><BR>><BR>><BR>><BR>>-------------------------------------------------------<BR>>This SF.Net email is sponsored by: GNOME Foundation<BR>>Hackers Unite! GUADEC: The world's #1 Open Source Desktop Event.<BR>>GNOME Users and Developers European Conference, 28-30th June in Norway<BR>>http://2004/gu! adec.org <BR>>_______________________________________________<BR>>Exist-open mailing list<BR>>Exi...@li...<BR>>https://lists.sourceforge.net/lists/listinfo/exist-open<BR>></P> |