algolia/algoliasearch-client-android

searchDisjunctiveFaceting's response does not follow the specs

PLNech opened this issue ยท 3 comments

A customer on support reported that ISA's addFacetRefinement used with isDisjunctiveFacet=true does return hits with only the selected facet values.

He's mostly right: the documented parameter facets is returned with the currently refined facets, while the disjunctive facet values are returned in the undocumented disjunctiveFacets parameters.

Compare with IS-iOS using the swift client, which follows the specification:
facets contain disjunctive values

I see two potential solutions:

  • If we consider that having both attributes brings value (and I believe so), we should open the conversation with the other API client maintainers to return both results for disjunctive faceting queries
  • If we consider this is useless, we should update the client to put disjunctive facets in facets (keeping the disjunctiveFacets attribute for BC until the next major version).

@clement-leprovost, I would love your opinion on this. ๐Ÿ™‚

@clement-leprovost, What's your take on this one? ๐Ÿ˜

Sorry, no real opinion... ๐Ÿ˜ฌ