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

[Issue #3183] Make search facets for agencies return more than 25 agencies #3273

Merged
merged 1 commit into from
Dec 18, 2024

Conversation

chouinar
Copy link
Collaborator

Summary

Fixes #3183

Time to review: 3 mins

Changes proposed

Modify the search facet count logic to allow up to 1000 unique agencies in response

Context for reviewers

By default we configured the size to be 25 arbitrarily. There are about 700 agencies with opportunities in prod, so configured a number a bit above that for now.

We might want to consider allowing the user of the API to specify the facets they want in the future.

Additional information

I loaded a lot of opportunities into the search index, and the response for facet counts now has all of the agencies we have configured locally with is about 80.

@chouinar chouinar requested a review from mdragon as a code owner December 17, 2024 19:27
Copy link
Collaborator

@mdragon mdragon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved!

@chouinar chouinar merged commit 3ecdc32 into main Dec 18, 2024
2 checks passed
@chouinar chouinar deleted the chouinar/3183-search-many branch December 18, 2024 16:41
doug-s-nava pushed a commit that referenced this pull request Dec 30, 2024
…ncies (#3273)

## Summary
Fixes #3183

### Time to review: __3 mins__

## Changes proposed
Modify the search facet count logic to allow up to 1000 unique agencies
in response

## Context for reviewers
By default we configured the size to be 25 arbitrarily. There are about
700 agencies with opportunities in prod, so configured a number a bit
above that for now.

We might want to consider allowing the user of the API to specify the
facets they want in the future.

## Additional information
I loaded a lot of opportunities into the search index, and the response
for facet counts now has all of the agencies we have configured locally
with is about 80.
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 this pull request may close these issues.

Modify search facet count logic to allow more than 25 values in the response
2 participants