algolia/algoliasearch-client-php

Disjunctive facets

Closed this issue · 5 comments

olup commented

Hey !

Thanks for the great implementation.

My company is trying to use the php client in order to get facets count with disjunctive_facets. And on top of that we need to filter by facets and by regular filters.

Is there a reason why v1.x does not allow to add $disjunctive_facets in cunjunction with some regular filters ?

Is $disjunctive_facets available in v2 ? I don't see anything about it in the codebase, other than it's coming soon.

Cheers !

Hello @olup,

Thanks for reporting this issue.

Is there a reason why v1.x does not allow to add $disjunctive_facets in cunjunction with some regular filters ?

We're are currently investigating this question. We will answer as soon as possible.

`Is $disjunctive_facets available in v2 ?

At the moment no. But, we are currently considering to implement this method for the version 2. We will come back to this issue once we have an exact date.

Don't hesitate to reach us if you have any further questions.

olup commented

Hello @olup, we decide it was important to implement it for the v2, a pull request will be opened in the future.
If in any case, you need to implement it for v2 PHP-Client, here is a gist.
Cheers,

olup commented

I'm closing this issue as a solution has been provided