Issue 8161 - index approx not working
Summary: index approx not working
Status: VERIFIED FEEDBACK
Alias: None
Product: OpenLDAP
Classification: Unclassified
Component: slapd (show other issues)
Version: 2.4.40
Hardware: All All
: --- normal
Target Milestone: ---
Assignee: OpenLDAP project
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-06-02 09:10 UTC by bernhard.pfeiffer33@gmail.com
Modified: 2021-08-03 18:13 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description bernhard.pfeiffer33@gmail.com 2015-06-02 09:10:42 UTC
Full_Name: Bernhard Pfeiffer
Version: 2.4.40
OS: SUSE Linux 11
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (85.158.227.32)


Hey!

I configured this index:

index cn eq,sub,approx

sn~=Bern

But my search doesn't find anything:

If i configure:

index cn eq,sub

and searching for:

sn~=Bern

I get some results.

But in the logfile is written:

 <= mdb_approx_candidates: (cn) not indexed

Is this a bug?
Comment 1 Hallvard Furuseth 2015-06-02 09:44:31 UTC
On 02/06/15 11:10, bernhard.pfeiffer@brz.gv.at wrote:
> I configured this index:
>
> index cn eq,sub,approx
> (...)
>   <= mdb_approx_candidates: (cn) not indexed

Does it help to stop slapd, run sbin/slapindex, restart slapd?

After inserting an index in slapd.conf, you must do that
to index your existing values (if any).  If you instead
use cn=config and add an index over the LDAP protocol,
slapd will index the values automatically.

Comment 2 Hallvard Furuseth 2015-06-02 22:13:04 UTC
changed state Open to Feedback
moved from Incoming to Software Bugs