Return-Path: X-Original-To: apmail-directory-dev-archive@www.apache.org Delivered-To: apmail-directory-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2075D11FB0 for ; Thu, 17 Jul 2014 14:29:05 +0000 (UTC) Received: (qmail 41575 invoked by uid 500); 17 Jul 2014 14:29:05 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 41528 invoked by uid 500); 17 Jul 2014 14:29:05 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 41509 invoked by uid 99); 17 Jul 2014 14:29:04 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Jul 2014 14:29:04 +0000 Date: Thu, 17 Jul 2014 14:29:04 +0000 (UTC) From: "Kiran Ayyagari (JIRA)" To: dev@directory.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (DIRSERVER-1965) An Index should speed up searches starting with '*' MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DIRSERVER-1965?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14064959#comment-14064959 ] Kiran Ayyagari commented on DIRSERVER-1965: ------------------------------------------- Committed a fix here http://svn.apache.org/r1611363 without which the above optimization doesn't work. > An Index should speed up searches starting with '*' > --------------------------------------------------- > > Key: DIRSERVER-1965 > URL: https://issues.apache.org/jira/browse/DIRSERVER-1965 > Project: Directory ApacheDS > Issue Type: Improvement > Components: ldap > Affects Versions: 2.0.0-M16 > Environment: NA > Reporter: Ernst Bech > Assignee: Kiran Ayyagari > Priority: Blocker > > As of now an index will speed up searches for an exact match string and a substring ending with a "*". > It does NOT currently speed up searches starting with a "*", which is what we need to be implemented. > Example: in our unified messaging application - when we receive an incoming call - we have to find a user whose telephone number ends with the digits signaled to us by the telephone network. > Let's say a user has a telephone number +49(777)12345678. The telephone network only signals its extension 678. We thus search for *678 to get a list of possible users and by applying some extra magic we are able to pick the right one. > The problem is: we need to do this fast, because taking the call depends on it. -- This message was sent by Atlassian JIRA (v6.2#6252)