Skip to content

Disjunctive facets #909

@SergeyRe

Description

@SergeyRe

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions