directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lucasthei...@apache.org
Subject svn commit: r1659827 - /directory/site/trunk/content/api/user-guide/2.11-filter-builder.mdtext
Date Sat, 14 Feb 2015 18:06:24 GMT
Author: lucastheisen
Date: Sat Feb 14 18:06:24 2015
New Revision: 1659827

URL: http://svn.apache.org/r1659827
Log:
added documentation for using filter builder with ldapconnectiontemplate

Modified:
    directory/site/trunk/content/api/user-guide/2.11-filter-builder.mdtext

Modified: directory/site/trunk/content/api/user-guide/2.11-filter-builder.mdtext
URL: http://svn.apache.org/viewvc/directory/site/trunk/content/api/user-guide/2.11-filter-builder.mdtext?rev=1659827&r1=1659826&r2=1659827&view=diff
==============================================================================
--- directory/site/trunk/content/api/user-guide/2.11-filter-builder.mdtext (original)
+++ directory/site/trunk/content/api/user-guide/2.11-filter-builder.mdtext Sat Feb 14 18:06:24
2015
@@ -177,46 +177,46 @@ Which MIGHT match results whose locality
 
 ## StartsWith Filter
 
-Returns a new FilterBuilder that will construct a SubString filter, with an initialany part,
but no final part. For instance:
+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:
 
-    startswith( "sn", "Th", "Soft", "Foun" )).toString()
+    startsWith( "sn", "Th", "Soft", "Foun" )).toString()
  
-would result in the string: *(sn=Th*Soft*Foun*)*
+would result in the string: _(sn=Th\*Soft\*Foun\*)_
  
-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'.
+Which would match any entry with an sn starting with the string 'Th', followed by 'Soft',
then 'Foun', like 'The Apache Software Foundation'.
 
 ## EndsWith Filter
 
-Returns a new FilterBuilder that will construct a SubString filter, with an initialany parts,
but no final part. For instance:
+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:
 
-    startswith( "sn", "Th", "Soft", "Foun" )).toString()
+    endsWith( "sn", "Soft", "Foun", "ion" )).toString()
  
-would result in the string: _(sn=Th*Soft*Foun*)_
+would result in the string: _(sn=\*Soft\*Foun\*ion)_
  
-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'.
+Which would match any entry with an sn containing the string 'Soft' followed by 'Foun' ending
in 'ion', like 'The Apache Software Foundation'.
 
 ## Contains Filter
 
-Returns a new FilterBuilder that will construct a SubString filter, with zero to N any parts,
but no initial or final parts. For instance:
+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:
 
     contains( "sn", "Soft", "Foun" )).toString()
  
-would result in the string: _(sn=*Soft*Foun*)_
+would result in the string: _(sn=\*Soft\*Foun\*)_
  
-Which would match any entry with the sn having a Soft and Foun strings in the middle, like
'The Apache Software Foundation'.
+Which would match any entry with an sn containing the string 'Soft' followed by 'Foun', like
'The Apache Software Foundation'.
 
 ## Substring Filter
 
-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:
+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:
 
     substring( "sn", "The", "Soft", "Foun", "ion" )).toString()
  
-would result in the string: _(sn=The*Soft*Foun*ion)_
+would result in the string: _(sn=The\*Soft\*Foun\*ion)_
  
-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'.
+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'.
 
-Note that if we have only two strings in the parts, they will be the initial and final ones
:
+Note that if only two strings are supplied for parts, they will be the initial and the final:
 
     substring( "sn", "The", "ion" )).toString()
  
-would result in the string: _(sn=The*ion)_
+would result in the string: _(sn=The\*ion)_



Mime
View raw message