[
https://issues.apache.org/jira/browse/DIRSERVER-1724?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13276745#comment-13276745
]
Emmanuel Lecharny commented on DIRSERVER-1724:
----------------------------------------------
What is strange is that the test I have added into the Ldap-client tests works,
even for substring searches :
http://svn.apache.org/viewvc/directory/apacheds/trunk/ldap-client-test/src/test/java/org/apache/directory/shared/client/api/operations/search/OperationWithIndexTest.java?view=markup
Check the testModify() test, where you can find :
262 connection.modify( dn, new DefaultModification(
ModificationOperation.REPLACE_ATTRIBUTE, "displayName", "test" ) );
263
264 results = connection.search("dc=example,dc=com", "(displayName=t*)",
SearchScope.SUBTREE, "*" );
265
266 while ( results.next() )
267 {
268 Entry result = results.get();
269 assertTrue( result.contains( "displayName", "test" ) );
270 }
> Attribute indexes not updated after entry modification
> ------------------------------------------------------
>
> Key: DIRSERVER-1724
> URL: https://issues.apache.org/jira/browse/DIRSERVER-1724
> Project: Directory ApacheDS
> Issue Type: Bug
> Components: core
> Affects Versions: 2.0.0-M7
> Environment: Win x64
> Reporter: Carlo Accorsi
> Priority: Minor
>
> We setup a partition and configure the attributes we want to index. Import
> all our users via LDIF and ApacheDS studio and everything works great.
> If a modification is made to an indexed attribute, for example displayName,
> that entry cannot be found either with an exact or substring match.
> Consider this:
> diaplayName: Test User1
> After initial import of LDIF import, the following searches will return a
> result.
> displayName=Test User1
> displayName=Test*
> If the attribute is modified, to Test User2, neither of the searches below
> yield any result.
> displayName=Test User2
> displayName=Test*
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira