You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by bu...@apache.org on 2015/02/14 19:06:28 UTC

svn commit: r940170 - in /websites/staging/directory/trunk/content: ./ api/user-guide/2.11-filter-builder.html

Author: buildbot
Date: Sat Feb 14 18:06:28 2015
New Revision: 940170

Log:
Staging update by buildbot for directory

Modified:
    websites/staging/directory/trunk/content/   (props changed)
    websites/staging/directory/trunk/content/api/user-guide/2.11-filter-builder.html

Propchange: websites/staging/directory/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Sat Feb 14 18:06:28 2015
@@ -1 +1 @@
-1659823
+1659827

Modified: websites/staging/directory/trunk/content/api/user-guide/2.11-filter-builder.html
==============================================================================
--- websites/staging/directory/trunk/content/api/user-guide/2.11-filter-builder.html (original)
+++ websites/staging/directory/trunk/content/api/user-guide/2.11-filter-builder.html Sat Feb 14 18:06:28 2015
@@ -303,38 +303,38 @@ using the <em>hypothetical</em> matching
 <p>would result in the string: <em>(l~=san fransico)</em></p>
 <p>Which MIGHT match results whose locality is San Francisco. The matching rule used to apply this filter is dependent on the server implementation.</p>
 <h2 id="startswith-filter">StartsWith Filter</h2>
-<p>Returns a new FilterBuilder that will construct a SubString filter, with an initialany part, but no final part. For instance:</p>
-<div class="codehilite"><pre><span class="n">startswith</span><span class="p">(</span> &quot;<span class="n">sn</span>&quot;<span class="p">,</span> &quot;<span class="n">Th</span>&quot;<span class="p">,</span> &quot;<span class="n">Soft</span>&quot;<span class="p">,</span> &quot;<span class="n">Foun</span>&quot; <span class="p">)).</span><span class="n">toString</span><span class="p">()</span>
+<p>Returns a new FilterBuilder that will construct a SubString filter with an initial part, zero or more any parts, but no final part. For instance:</p>
+<div class="codehilite"><pre><span class="n">startsWith</span><span class="p">(</span> &quot;<span class="n">sn</span>&quot;<span class="p">,</span> &quot;<span class="n">Th</span>&quot;<span class="p">,</span> &quot;<span class="n">Soft</span>&quot;<span class="p">,</span> &quot;<span class="n">Foun</span>&quot; <span class="p">)).</span><span class="n">toString</span><span class="p">()</span>
 </pre></div>
 
 
-<p>would result in the string: <em>(sn=Th</em>Soft<em>Foun</em>)*</p>
-<p>Which would match any entry with the sn starting with 'Th', and having a Soft and Foun strings in the middle, like 'The Apache Software Foundation'.</p>
+<p>would result in the string: <em>(sn=Th*Soft*Foun*)</em></p>
+<p>Which would match any entry with an sn starting with the string 'Th', followed by 'Soft', then 'Foun', like 'The Apache Software Foundation'.</p>
 <h2 id="endswith-filter">EndsWith Filter</h2>
-<p>Returns a new FilterBuilder that will construct a SubString filter, with an initialany parts, but no final part. For instance:</p>
-<div class="codehilite"><pre><span class="n">startswith</span><span class="p">(</span> &quot;<span class="n">sn</span>&quot;<span class="p">,</span> &quot;<span class="n">Th</span>&quot;<span class="p">,</span> &quot;<span class="n">Soft</span>&quot;<span class="p">,</span> &quot;<span class="n">Foun</span>&quot; <span class="p">)).</span><span class="n">toString</span><span class="p">()</span>
+<p>Returns a new FilterBuilder that will construct a SubString filter with no initial part, zero or more any parts, and a final part. For instance:</p>
+<div class="codehilite"><pre><span class="n">endsWith</span><span class="p">(</span> &quot;<span class="n">sn</span>&quot;<span class="p">,</span> &quot;<span class="n">Soft</span>&quot;<span class="p">,</span> &quot;<span class="n">Foun</span>&quot;<span class="p">,</span> &quot;<span class="n">ion</span>&quot; <span class="p">)).</span><span class="n">toString</span><span class="p">()</span>
 </pre></div>
 
 
-<p>would result in the string: <em>(sn=Th<em>Soft</em>Foun*)</em></p>
-<p>Which would match any entry with the sn starting with 'Th', and having a Soft and Foun strings in the middle, like 'The Apache Software Foundation'.</p>
+<p>would result in the string: <em>(sn=*Soft*Foun*ion)</em></p>
+<p>Which would match any entry with an sn containing the string 'Soft' followed by 'Foun' ending in 'ion', like 'The Apache Software Foundation'.</p>
 <h2 id="contains-filter">Contains Filter</h2>
-<p>Returns a new FilterBuilder that will construct a SubString filter, with zero to N any parts, but no initial or final parts. For instance:</p>
+<p>Returns a new FilterBuilder that will construct a SubString filter with no initial part, zero or more any parts, and no final part. For instance:</p>
 <div class="codehilite"><pre><span class="n">contains</span><span class="p">(</span> &quot;<span class="n">sn</span>&quot;<span class="p">,</span> &quot;<span class="n">Soft</span>&quot;<span class="p">,</span> &quot;<span class="n">Foun</span>&quot; <span class="p">)).</span><span class="n">toString</span><span class="p">()</span>
 </pre></div>
 
 
-<p>would result in the string: <em>(sn=<em>Soft</em>Foun*)</em></p>
-<p>Which would match any entry with the sn having a Soft and Foun strings in the middle, like 'The Apache Software Foundation'.</p>
+<p>would result in the string: <em>(sn=*Soft*Foun*)</em></p>
+<p>Which would match any entry with an sn containing the string 'Soft' followed by 'Foun', like 'The Apache Software Foundation'.</p>
 <h2 id="substring-filter">Substring Filter</h2>
-<p>Returns a new FilterBuilder that will construct a SubString filter, with a initial part, zero to N any parts, and a final part. For instance:</p>
+<p>Returns a new FilterBuilder that will construct a SubString filter with an initial part, zero or more any parts, and a final part. For instance:</p>
 <div class="codehilite"><pre><span class="n">substring</span><span class="p">(</span> &quot;<span class="n">sn</span>&quot;<span class="p">,</span> &quot;<span class="n">The</span>&quot;<span class="p">,</span> &quot;<span class="n">Soft</span>&quot;<span class="p">,</span> &quot;<span class="n">Foun</span>&quot;<span class="p">,</span> &quot;<span class="n">ion</span>&quot; <span class="p">)).</span><span class="n">toString</span><span class="p">()</span>
 </pre></div>
 
 
-<p>would result in the string: <em>(sn=The<em>Soft</em>Foun*ion)</em></p>
-<p>Which would match any entry with the sn having a Soft and Foun strings in the middle, starts with The and ends with ion like 'The Apache Software Foundation'.</p>
-<p>Note that if we have only two strings in the parts, they will be the initial and final ones :</p>
+<p>would result in the string: <em>(sn=The*Soft*Foun*ion)</em></p>
+<p>Which would match any entry with an sn starting with 'The', followed by 'Soft', then 'Foun', and ending with 'ion', like 'The Apache Software Foundation'.</p>
+<p>Note that if only two strings are supplied for parts, they will be the initial and the final:</p>
 <div class="codehilite"><pre><span class="n">substring</span><span class="p">(</span> &quot;<span class="n">sn</span>&quot;<span class="p">,</span> &quot;<span class="n">The</span>&quot;<span class="p">,</span> &quot;<span class="n">ion</span>&quot; <span class="p">)).</span><span class="n">toString</span><span class="p">()</span>
 </pre></div>