Re: [389-users] sort on createTimestamp via JNDI

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

the server does support the server-side sorting. However if the server
considers that the sorting task is too expensive it sends you an
error. When you sort on a certain attribute be sure
* to have an index on it with the corresponding matching rule
(http://www.redhat.com/docs/manuals/dir-server/8.1/admin/index-sort-order.html)
and
* be sure that the number of sorted entries does not exceeed
nsslapd-idlistscanlimit
(http://www.redhat.com/docs/manuals/dir-server/8.1/admin/Managing_Indexes.html),
otherwise the search will be considered unindexed and as a consequence
too expensive

Other than that the sorting works perfectly...



2010/1/29 Derek Alexander <d.alexander@xxxxxxxxx>:
> Hi,
>
> Was trying to do a search against the directory, with results sorted on the createTimestamp
> attribute using JNDI.
>
> Got this back:
>
> javax.naming.OperationNotSupportedException: [LDAP: error code 12 - Sort Response Control];
> remaining name '...'
>
> Any idea of the reason for this?
>
> I was under the impression that server-side sorting was supported.
>
> Cheers,
> Derek
>
>
> Please access the attached hyperlink for an important electronic communications disclaimer: http://www.lse.ac.uk/collections/planningAndCorporatePolicy/legalandComplianceTeam/legal/disclaimer.htm
> --
> 389 users mailing list
> 389-users@xxxxxxxxxxxxxxxxxxxxxxx
> https://admin.fedoraproject.org/mailman/listinfo/389-users
>
--
389 users mailing list
389-users@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/389-users

[Index of Archives]     [Fedora Directory Users]     [Fedora Directory Devel]     [Fedora Announce]     [Fedora Legacy Announce]     [Kernel]     [Fedora Legacy]     [Share Photos]     [Fedora Desktop]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Big List of Linux Books]     [Gimp]     [Yosemite News]

  Powered by Linux