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

Disjunctive facets #909

Open
SergeyRe opened this issue Mar 11, 2025 · 0 comments
Open

Disjunctive facets #909

SergeyRe opened this issue Mar 11, 2025 · 0 comments

Comments

@SergeyRe
Copy link

SergeyRe commented Mar 11, 2025

Problem Description

for introducing:
What is the difference between a disjunctive and a conjunctive facet?

Proposed Solution

possible implementation -to add "conjunctive" field to describe facet

const results = search(db, {
  term: "Movie about cars and racing",
  properties: ["description"],
  facets: {
    "categories.primary": {
      limit: 3,
      order: "DESC",
      conjunctive: false
    }

in this case this facet values and counts have to be calculated upon additional search request eleminating filtering on this facet selected values

Alternatives

treat facet as disjunctive if search request on it has containsAny operator

Additional Context

No response

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

No branches or pull requests

1 participant