#48109 substring index with nssubstrbegin: 1 is not being used with filters like (attr=x*)
Closed: wontfix Opened by nhosoi.

Description of problem:

I define an index with:
nssubstrbegin: 2

like this:
dn: cn=uid,cn=index,cn=userRoot,cn=ldbm database,cn=plugins,cn=config
objectClass: top
objectClass: nsIndex
objectClass: extensibleObject
cn: uid
nsSystemIndex: false
nsIndexType: eq
nsIndexType: pres
nsIndexType: sub
nssubstrbegin: 2
nssubstrmiddle: 2
nssubstrend: 2

  • db2index

And a query with filter (uid=n*) seems not to be using the index:

[25/Feb/2015:15:37:06 +0100] conn=7 op=1 SRCH base="o=redhat" scope=2
filter="(uid=n*)" attrs=ALL
[25/Feb/2015:15:37:06 +0100] conn=7 op=1 RESULT err=0 tag=101 nentries=1
etime=0 notes=A


Reviewed by Rich (Thank you!!)

Pushed to master:
8f1eef1..71f7659 master -> master
commit 71f7659d5f002a4e50f0dc123f0311b04ee87b79
commit ae69e4aa1dcec1c5f79af502b77d9e19a3d348ee

Pushed to 389-ds-base-1.3.3:
a875da1..09fc02e 389-ds-base-1.3.3 -> 389-ds-base-1.3.3
commit 09fc02e509b94c9e6a859038afe370c0ed2c595d
commit 511ec03a94a09930ef9a43c223e95be4f3112ec4

Fixed a compiler warning reported by Jenkins (#514)

71f7659..3701875 master -> master
commit 370187574293b1d6f3a84e7f366986dc0cefc394

09fc02e..d6f7b97 389-ds-base-1.3.3 -> 389-ds-base-1.3.3
commit d6f7b97242e40d432d18baf690f216e29082d425

Reviewed by Rich (Thank you!!)

Pushed to master:
bb0d222..2eba67c master -> master
commit 2eba67c469e7946321b0707f51e63ecb3cb74aaa

Pushed to 1.3.3:
1fe0088..650ca94 389-ds-base-1.3.3 -> 389-ds-base-1.3.3
commit 650ca9490ab08736bb6c4b1a5d1e931d574f3333

git patch file (master) -- stop logging a bogus error messages
0001-Ticket-48109-substring-index-with-nssubstrbegin-1-is.3.patch

Reviewed by Mark (Thank you!!)

Pushed to master:
cb22bb3..230ace2 master -> master
commit 230ace2aa657e931b4c6dfa742a28d072a8f5db7

Pushed to 389-ds-base-1.3.4:
7715ac1..e001de5 389-ds-base-1.3.4 -> 389-ds-base-1.3.4
commit e001de5a68d63c9256da2ca62ec7d75cac0b22ff

Metadata Update from @nhosoi:
- Issue assigned to nhosoi
- Issue set to the milestone: 1.3.3.9

389-ds-base is moving from Pagure to Github. This means that new issues and pull requests
will be accepted only in 389-ds-base's github repository.

This issue has been cloned to Github and is available here:
- https://github.com/389ds/389-ds-base/issues/1440

If you want to receive further updates on the issue, please navigate to the github issue
and click on subscribe button.

Thank you for understanding. We apologize for all inconvenience.

Metadata Update from @spichugi:
- Issue close_status updated to: wontfix (was: Fixed)

Metadata