HP-UX Directory Server Administrator Guide HP-UX Directory Server Version 8.1 (5900-3098, May 2013)

B.5.3 International search examples
The following sections show examples of how to perform international searches on directory data.
Each example gives all the possible matching rule filter formats so that you can become familiar
with the formats and select the one that works best.
B.5.3.1 Less-than example
Performing a locale-specific search using the less-than operator (<), or suffix (.1) searches for all
attribute values that come before the given attribute in a specific collation order.
For example, to search for all surnames that come before the surname Marquez in the Spanish
collation order, any of the following matching rule filters would work:
sn:2.16.840.1.113730.3.3.2.15.1:=< Marquez
...
sn:es:=< Marquez
...
sn:2.16.840.1.113730.3.3.2.15.1.1:=Marquez
...
sn:es.1:=Marquez
B.5.3.2 Less-than or equal-to example
Performing a locale-specific search using the less-than or equal-to operator (<=), or suffix (.2)
searches for all attribute values that come at or before the given attribute in a specific collation
order.
For example, to search for all room numbers that come at or before room number CZ422 in the
Hungarian collation order, any of the following matching rule filters would work:
roomNumber:2.16.840.1.113730.3.3.2.23.1:=<= CZ422
...
roomNumber:hu:=<= CZ422
...
roomNumber:2.16.840.1.113730.3.3.2.23.1.2:=CZ422
...
roomNumber:hu.2:=CZ422
B.5.3.3 Equality example
Performing a locale-specific search using the equal to operator (=), or suffix (.3) searches for all
attribute values that match the given attribute in a specific collation order.
For example, to search for all businessCategory attributes with the value softwareprodukte
in the German collation order, any of the following matching rule filters would work:
businessCategory:2.16.840.1.113730.3.3.2.7.1:==softwareprodukte
...
businessCategory:de:== softwareprodukte
...
businessCategory:2.16.840.1.113730.3.3.2.7.1.3:=softwareprodukte
...
businessCategory:de.3:=softwareprodukte
B.5.3.4 Greater-than or equal-to example
Performing a locale-specific search using the greater-than or equal-to operator (>=), or suffix (.4)
searches for all attribute values that come at or after the given attribute in a specific collation order.
For example, to search for all localities that come at or after Québec in the French collation order,
any of the following matching rule filters would work:
locality:2.16.840.1.113730.3.3.2.18.1:=>= Québec
...
locality:fr:=>= Québec
...
locality:2.16.840.1.113730.3.3.2.18.1.4:=Québec
B.5 Searching an internationalized directory 567