Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

True Unique capability #2635

Open
ivakegg opened this issue Nov 19, 2024 · 1 comment · May be fixed by #2678
Open

True Unique capability #2635

ivakegg opened this issue Nov 19, 2024 · 1 comment · May be fixed by #2678
Assignees

Comments

@ivakegg
Copy link
Collaborator

ivakegg commented Nov 19, 2024

The request is to be able to modify the unique capability to return documents that are truely unique within the context of the results. This means that only those unique results that actually only existed once in the non-uniquified result set are returned. I am thinking that this can be extended to specify a max-count on the unique results such that those unique results that only occured up to the specfied max-count are actually returned.

@ivakegg
Copy link
Collaborator Author

ivakegg commented Nov 19, 2024

Perhaps #MAX_UNIQUE_COUNT(1) && #UNIQUE(FIELD1,FIELD2)

@lbschanno lbschanno self-assigned this Nov 19, 2024
lbschanno added a commit that referenced this issue Dec 31, 2024
Add the ability to specify a max count on results from the unique
operation such that only the unique results that occurred up to the
specified max count are returned.

This max count can be specified either via the function
MAX_UNIQUE_COUNT or via the query parameter max.unique.count.

Fixes #2635
@lbschanno lbschanno linked a pull request Dec 31, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants