Browse Source

Resolves: #452328
Summary: range search anomaly on the integer type
Description: Retro changelog plugin automatically creates an index for
changeNumber, which has an integer type. To support the reange search againt
changeNumber, the index should have the matching order "integerOrderingMatch".

Noriko Hosoi 17 years ago
parent
commit
7506eeab15
1 changed files with 4 additions and 0 deletions
  1. 4 0
      ldap/servers/plugins/retrocl/retrocl_create.c

+ 4 - 0
ldap/servers/plugins/retrocl/retrocl_create.c

@@ -166,6 +166,10 @@ static int retrocl_create_be(const char *bedir)
     val.bv_len = strlen(val.bv_val);
     val.bv_len = strlen(val.bv_val);
     slapi_entry_add_values( e, "nsindextype", vals );
     slapi_entry_add_values( e, "nsindextype", vals );
 
 
+    val.bv_val = "integerOrderingMatch";
+    val.bv_len = strlen(val.bv_val);
+    slapi_entry_add_values( e, "nsMatchingRule", vals );
+
     pb = slapi_pblock_new ();
     pb = slapi_pblock_new ();
     slapi_add_entry_internal_set_pb( pb, e, NULL /* controls */, 
     slapi_add_entry_internal_set_pb( pb, e, NULL /* controls */, 
 				     g_plg_identity[PLUGIN_RETROCL], 
 				     g_plg_identity[PLUGIN_RETROCL],