[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: slow search on indexed attribute



Today at 4:33pm, Patrick Radtke wrote:

> For people that found the 4 character length to be too long, what did
> you do? change it to 3 and rebuild openLdap? Or do 3 character searches
> happen infrequently enough that you don't care?

I changed my PHP code, so if you type 3 or fewer characters, I search
for

(|(attr=abc*)(attr=*abc)) instead of (attr=*abc*)  (where "abc" is the
string you entered)

Problem solved... and 9 times out of 10, it finds what you were looking
for.

-- 
Frank Swasey                    | http://www.uvm.edu/~fcs
Systems Programmer              | Always remember: You are UNIQUE,
University of Vermont           |    just like everyone else.
        === God bless all inhabitants of your planet ===