-
-
Notifications
You must be signed in to change notification settings - Fork 60
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
groups are getting flattened in a group_by query #178
Comments
jasonbosco
added a commit
that referenced
this issue
Jul 26, 2023
@majestiq This is a great idea! I've added the ability to turn off grouped result flattening in const typesenseInstantsearchAdapter = new TypesenseInstantSearchAdapter({
server: {
apiKey: "xyz",
nodes: [
{
host: "localhost",
port: "8108",
path: "/",
protocol: "http",
},
],
},
flattenGroupedHits: false, // <=======
additionalSearchParameters,
}); Could you give it a shot and let me know how it goes? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
when using a group by query with the instantsearch adapter, the results will be flattened. ie: groupLimit = 4 means that I will have # of results per page X 4 results showing on the page.
Expected Behavior
Only show the first items from the group and allow secondary items in the group to be access via an array in the Hits object rendering. That way, from the Hits widget, we can put in custom rendering to decide how to handle additional items in a group.
The text was updated successfully, but these errors were encountered: