-
Bug
-
Resolution: Fixed
-
Low
-
2.4
-
None
At the moment CrowdService.search() with an entity type of User will query the directories in order and stop once it has enough users to satisfy the maxReturn param. It should return users from all directories properly globally ordered.
To illustrate, if I had:
DIR 0: ADAM, BEN, ZACHARY
DIR 1: CARL, DAVE
and called CrowdService.search() with a maxReturn of 3 and an offset of 0, I would receive:
[ADAM, BEN, ZACHARY]
For my usecase I need to get:
[ADAM, BEN, CARL]
- duplicates
-
CWD-2512 Use of start-index and max-results in search returns unpredictable result
-
- Closed
-
- is related to
-
CWD-3225 Improve performance for paginated queries across multiple directories
- Closed
- supersedes
-
CWD-2748 ApplicationServiceGeneric.searchUsers() returns too few users for offset queries when there are multiple directories
-
- Closed
-
Changing to bug as this does cause serious problems when querying across multiple directories. You end up with inconsistent ordering in the results, making this useless for paging.