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 <[email protected]> wrote: > Hi, > > > > Can anyone give me an example of how to filter the entries returned by the > Search method using a custom partition? > > > > I´m able to do searches on my custom partition, however if I want to use a > filter (i.e. objectClass=”person”) my partition returns all the entries > found, with no filtering at all. > > > > Thanks! > > > > LUIS JAVIER MENDEZ > Developer > > O +506 2290 1960 > > Skype: luis.javier.06 > > SEARCH TECHNOLOGIES > > THE EXPERT IN THE SEARCH SPACE > www.searchtechnologies.com > >
