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 B935D226D for ; Fri, 29 Apr 2011 12:34:07 +0000 (UTC) Received: (qmail 51832 invoked by uid 500); 29 Apr 2011 12:34:07 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 51782 invoked by uid 500); 29 Apr 2011 12:34:06 -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 51775 invoked by uid 99); 29 Apr 2011 12:34:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Apr 2011 12:34:06 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.214.178] (HELO mail-iw0-f178.google.com) (209.85.214.178) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Apr 2011 12:34:01 +0000 Received: by iwn9 with SMTP id 9so4009129iwn.37 for ; Fri, 29 Apr 2011 05:33:40 -0700 (PDT) MIME-Version: 1.0 Received: by 10.42.135.198 with SMTP id q6mr5072984ict.399.1304080420361; Fri, 29 Apr 2011 05:33:40 -0700 (PDT) Sender: mail@stefan-seelmann.de Received: by 10.42.178.5 with HTTP; Fri, 29 Apr 2011 05:33:40 -0700 (PDT) In-Reply-To: <95C9C4D4C2517C42AE228A920CA0803E1B16990E9D@stsd-srv07> References: <95C9C4D4C2517C42AE228A920CA0803E1B16990E9D@stsd-srv07> Date: Fri, 29 Apr 2011 14:33:40 +0200 X-Google-Sender-Auth: U4vUG0VkD9uoOX8tQRkSzC6JHTU Message-ID: Subject: Re: Filtering entries on a custom partition From: Stefan Seelmann To: Apache Directory Developers List , jmendez@searchtechnologies.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, I'm not sure if I understand your question right. Have you implemented your own custom partition, i.e. you implemented the org.apache.directory.server.core.partition.Partition interface? Then you have to implement the method EntryFilteringCursor search(SearchOperationContext ctx) and the passed SearchOperationContext contains the filter: ctx.getFilter() So you need to analyze and apply the filter (beside the search scope and search base etc.) in your code, it depends on the backend you are using. Can you give us some more details about the backend and eventually paste some code? Please also give us a hint what ApacheDS version you are using. Kind Regards, Stefan On Fri, Apr 29, 2011 at 12:03 AM, Javier Mendez Vasquez wrote: > Hi, > > > > Can anyone give me an example of how to filter the entries returned by th= e > Search method using a custom partition? > > > > I=C2=B4m able to do searches on my custom partition, however if I want to= use a > filter (i.e. objectClass=3D=E2=80=9Dperson=E2=80=9D) my partition returns= all the entries > found, with no filtering at all. > > > > Thanks! > > > > LUIS JAVIER MENDEZ > Developer > > O +506 2290 1960 > > Skype:=C2=A0 luis.javier.06 > > SEARCH TECHNOLOGIES > > THE EXPERT IN THE SEARCH SPACE > www.searchtechnologies.com > >