@@ -473,11 +473,11 @@ return
473473 </term >
474474 <listitem >
475475 <para >Defines a single term to be searched in the index. If the root
476- query element contains a sequence of term elements, they will be
476+ query element contains a sequence of term elements, wrap them in < bool >< /bool > and they will be
477477 combined as in a boolean "or" query. For example: </para >
478478 <synopsis language =" xquery" >let $query :=
479479 < query>
480- < term> nation< /term>< term> miserable< /term>
480+ < bool >< term> nation< /term>< term> miserable< /term>< /bool >
481481 < /query>
482482return
483483//SPEECH[ft:query(., $query)]</synopsis >
@@ -495,7 +495,7 @@ return
495495 <sgmltag >term</sgmltag > element. For example:</para >
496496 <synopsis language =" xquery" >let $query :=
497497 < query>
498- < term> nation< /term>< wildcard> miser*< /wildcard>
498+ < bool >< term> nation< /term>< wildcard> miser*< /wildcard>< /bool >
499499 < /query>
500500return
501501//SPEECH[ft:query(., $query)]</synopsis >
@@ -511,7 +511,7 @@ return
511511 For example:</para >
512512 <synopsis language =" xquery" >let $query :=
513513 < query>
514- < term> nation< /term>< regex> miser.*< /regex>
514+ < bool >< term> nation< /term>< regex> miser.*< /regex>< /bool >
515515 < /query>
516516return
517517//SPEECH[ft:query(., $query)]</synopsis >
@@ -606,7 +606,7 @@ return //SPEECH[ft:query(., $query)]
606606 terms which are within a specific distance. For example:</para >
607607 <synopsis language =" xquery" >let $query :=
608608 < query>
609- < near slop="20">< term> snake< /term>< near> tongue dog< /near>< /near>
609+ < near slop="20">< term> snake< /term>< near slop="1" > tongue dog< /near>< /near>
610610 < /query>
611611return //SPEECH[ft:query(., $query)]</synopsis >
612612 <para >Element <sgmltag >first</sgmltag > matches a span against the start
@@ -615,7 +615,8 @@ return //SPEECH[ft:query(., $query)]</synopsis>
615615 the start of the text. For example:</para >
616616 <synopsis language =" xquery" >let $query :=
617617 < query>
618- < near slop="50">< first end="2">< near> second witch< /near>< /first>< near> tongue dog< /near>< /near>
618+ < near slop="50">< first end="2">< near> second witch< /near>< /first>< near
619+ slop="1"> tongue dog< /near>< /near>
619620 < /query>
620621 return //SPEECH[ft:query(., $query)]</synopsis >
621622 <para >As shown above, the content of <sgmltag >first</sgmltag > can again
@@ -627,7 +628,7 @@ return //SPEECH[ft:query(., $query)]</synopsis>
627628 behaviour. For example:</para >
628629 <synopsis language =" xquery" >let $query :=
629630 < query>
630- < near slop="100" ordered="no">< term> snake < /term>< term> bake < /term>< /near>
631+ < near slop="100" ordered="no">< term> bubble < /term>< term> fillet < /term>< /near>
631632 < /query>
632633return //SPEECH[ft:query(., $query)]</synopsis >
633634 </listitem >
0 commit comments