diff --git a/data/lucene.xml b/data/lucene.xml index d6abab04..247a7bef 100644 --- a/data/lucene.xml +++ b/data/lucene.xml @@ -473,11 +473,11 @@ return Defines a single term to be searched in the index. If the root - query element contains a sequence of term elements, they will be + query element contains a sequence of term elements, wrap them in <bool></bool> and they will be combined as in a boolean "or" query. For example: let $query := <query> - <term>nation</term><term>miserable</term> + <bool><term>nation</term><term>miserable</term></bool> </query> return //SPEECH[ft:query(., $query)] @@ -495,7 +495,7 @@ return term element. For example: let $query := <query> - <term>nation</term><wildcard>miser*</wildcard> + <bool><term>nation</term><wildcard>miser*</wildcard></bool> </query> return //SPEECH[ft:query(., $query)] @@ -511,7 +511,7 @@ return For example: let $query := <query> - <term>nation</term><regex>miser.*</regex> + <bool><term>nation</term><regex>miser.*</regex></bool> </query> return //SPEECH[ft:query(., $query)] @@ -606,7 +606,7 @@ return //SPEECH[ft:query(., $query)] terms which are within a specific distance. For example: let $query := <query> - <near slop="20"><term>snake</term><near>tongue dog</near></near> + <near slop="20"><term>snake</term><near slop="1">tongue dog</near></near> </query> return //SPEECH[ft:query(., $query)] Element first matches a span against the start @@ -615,7 +615,8 @@ return //SPEECH[ft:query(., $query)] the start of the text. For example: let $query := <query> - <near slop="50"><first end="2"><near>second witch</near></first><near>tongue dog</near></near> + <near slop="50"><first end="2"><near>second witch</near></first><near +slop="1">tongue dog</near></near> </query> return //SPEECH[ft:query(., $query)] As shown above, the content of first can again @@ -627,7 +628,7 @@ return //SPEECH[ft:query(., $query)] behaviour. For example: let $query := <query> - <near slop="100" ordered="no"><term>snake</term><term>bake</term></near> + <near slop="100" ordered="no"><term>bubble</term><term>fillet</term></near> </query> return //SPEECH[ft:query(., $query)]