drupal-graphql / drupal-graphql/graphql-search-api

Update documentation with facet tags

Open
#7 0 comments 0 reactions 0 assignees View on GitHub
documentation
Dominant language
PHP
Stars
10
Forks
24
PR merge metrics
No merged PRs in 30d

Description

We can use tags to exclude certain conditions from being counted by facets.

The idea was to introduce the concept of facet exclusion. That is, to exclude facets from being altered by conditions of that same facet in the main query.

For example:

```{
searchAPISearch(index_id: "anabranch_connect_index", condition_group:{
conjunction:AND,
groups: [
{
conjunction: OR,
tags:["facet:study_fields"],
conditions: [
{operator: "=", name: "study_fields", value: "Finance"},
]
},
{
conjunction: OR,
tags:["facet:article_type"],
conditions: [
{operator: "=", name: "article_type", value: "Advice"},
]
},
]

},
```

Need to update the docs with this.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.