From fbff89e9b00105ff1f72ddfe8611f22523c01cbe Mon Sep 17 00:00:00 2001 From: Jean-Francois Dockes Date: Tue, 20 Sep 2011 18:02:46 +0200 Subject: [PATCH] updated the doc for anchored searches --- .hgignore | 1 + src/doc/user/usermanual.sgml | 75 +++++++++++++++++++++++++++++++++++- 2 files changed, 74 insertions(+), 2 deletions(-) diff --git a/.hgignore b/.hgignore index 56d19581..3916b3cb 100644 --- a/.hgignore +++ b/.hgignore @@ -30,6 +30,7 @@ src/doc/user/rcl.kicker-applet.html src/doc/user/rcl.program.api.html src/doc/user/rcl.program.fields.html src/doc/user/rcl.program.html +src/doc/user/rcl.search.anchorwild.html src/doc/user/rcl.search.commandline.html src/doc/user/rcl.search.complex.html src/doc/user/rcl.search.custom.html diff --git a/src/doc/user/usermanual.sgml b/src/doc/user/usermanual.sgml index 4ee90d01..17ef2ef5 100644 --- a/src/doc/user/usermanual.sgml +++ b/src/doc/user/usermanual.sgml @@ -2112,6 +2112,50 @@ text/html [file:///Users/uncrypted-dockes/projets/bateaux/ilur/factEtCie/r field search possibilities may be different for you if someone took care of the customisation. + + Modifiers + + Some characters are recognized as search modifiers when found + immediately after the closing double quote of a phrase, as in + "some term"modifierchars. The actual "phrase" + can be a single term of course. Supported modifiers: + + l can be used to turn off + stemming (mostly makes sense with p because + stemming is off by default for phrases). + + + o can be used to specify a + "slack" for phrase and proximity searches: the number of + additional terms that may be found between the specified + ones. If o is followed by an integer number, + this is the slack, else the default is 10. + + + p can be used to turn the + default phrase search into a proximity one + (unordered). Example:"order any in"p + + + A weight can be specified for a query element + by specifying a decimal value at the start of the + modifiers. Example: "Important"2.5. + + + + + + + + + Anchored searches and wildcards + + Some special characters are interpreted by &RCL; in search + strings to expand or specialize the search. Wildcards expand a root + term in controlled ways. Anchor characters can restrict a search to + succeed only if the match is found at or near the beginning of the + document or one of its fields. + More about wildcards @@ -2158,9 +2202,36 @@ text/html [file:///Users/uncrypted-dockes/projets/bateaux/ilur/factEtCie/r - + - + + Anchored searches + + Two characters are used to specify that a search hit should + occur at the beginning or at the end of the + text. ^ at the beginning of a term or phrase + constrains the search to happen at the start, $ + at the end force it to happen at the end. + + As this function is implemented as a phrase search it is + possible to specify a maximum distance at which the hit should + occur, either through the controls of the advanced search panel, or + using the query language, for example, as in: + "^someterm"o10 which would force + someterm to be found within 10 terms of the + start of the text. This can be combined with a field search as in + somefield:"^someterm"o10 or + somefield:someterm$. + + This feature can also be used with an actual phrase search, + but in this case, the distance applies to the whole phrase and + anchor, so that, for example, bla bla my unexpected + term at the beginning of the text would be a match for + "^my term"o5. + + + + Desktop integration