Skip to content

types: add parent key in the facet_count response#276

Merged
jasonbosco merged 1 commit intotypesense:masterfrom
tharropoulos:facet-parent
Mar 21, 2025
Merged

types: add parent key in the facet_count response#276
jasonbosco merged 1 commit intotypesense:masterfrom
tharropoulos:facet-parent

Conversation

@tharropoulos
Copy link
Collaborator

Change Summary

Add a parent optional key in the facet_count response type, for when faceting by children fields and want to return their parent in full. Closes #275

PR Checklist

@marcospassos
Copy link

@jasonbosco Any chance of a minor release with this fix in the near future? We have a blocked PR because of this.

@jasonbosco jasonbosco merged commit 00a1d81 into typesense:master Mar 21, 2025
1 check passed
@jasonbosco
Copy link
Member

Just published this in 2.1.0-0. Could you try it out and let me know how it goes?

@marcospassos
Copy link

It has fixed the issue, thank you!

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.

Include the parent field in the search return when using the facet_return_parent parameter

3 participants