directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r938192 - in /websites/staging/directory/trunk/content: ./ api/user-guide/2.11-filter-builder.html
Date Thu, 29 Jan 2015 13:09:53 GMT
Author: buildbot
Date: Thu Jan 29 13:09:53 2015
New Revision: 938192

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 Thu Jan 29 13:09:53 2015
@@ -1 +1 @@
-1655643
+1655644

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 Thu Jan
29 13:09:53 2015
@@ -189,7 +189,10 @@
 
 <h2 id="and-filter">And filter</h2>
 <p>Returns a new FilterBuilder that will &amp; together all of the supplied filters.
For example:</p>
-<p>and( equal( "givenName", "kermit" ), equal( "sn", "the frog" ) ).toString()</p>
+<div class="codehilite"><pre><span class="n">and</span><span class="p">(</span>
<span class="n">equal</span><span class="p">(</span> &quot;<span
class="n">givenName</span>&quot;<span class="p">,</span> &quot;<span
class="n">kermit</span>&quot; <span class="p">),</span> <span
class="n">equal</span><span class="p">(</span> &quot;<span class="n">sn</span>&quot;<span
class="p">,</span> &quot;<span class="n">the</span> <span class="n">frog</span>&quot;
<span class="p">)</span> <span class="p">).</span><span class="n">toString</span><span
class="p">()</span>
+</pre></div>
+
+
 <p>would result in the string: <em>(&amp;(givenName=kermit)(sn=the frog))</em></p>
 <p>Which would match all entries with a given name of kermit and a surname the frog.</p>
 <h2 id="or-filter">Or filter</h2>
@@ -242,7 +245,21 @@
 <p>would result in the string: <em>(sn&gt;=n)</em></p>
 <p>which would match results whose surname starts with the second half of the alphabet.</p>
 <h2 id="approximate-filter">Approximate Filter</h2>
+<p>Returns a new FilterBuilder for testing the approximate equality of an attribute.
For example:</p>
+<div class="codehilite"><pre><span class="n">approximatelyEqual</span><span
class="p">(</span> &quot;<span class="n">l</span>&quot;<span
class="p">,</span> &quot;<span class="n">san</span> <span class="n">fransico</span>&quot;
<span class="p">).</span><span class="n">toString</span><span class="p">();</span>
+</pre></div>
+
+
+<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>
+</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>
 <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>
@@ -273,14 +290,6 @@
 
 
 <p>would result in the string: <em>(sn=The*ion)</em></p>
-<h2 id="approximate-filter_1">Approximate Filter</h2>
-<p>Returns a new FilterBuilder for testing the approximate equality of an attribute.
For example:</p>
-<div class="codehilite"><pre><span class="n">approximatelyEqual</span><span
class="p">(</span> &quot;<span class="n">l</span>&quot;<span
class="p">,</span> &quot;<span class="n">san</span> <span class="n">fransico</span>&quot;
<span class="p">).</span><span class="n">toString</span><span class="p">();</span>
-</pre></div>
-
-
-<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>
 
 
     <div class="nav">



Mime
View raw message