Update documentation with facet tags
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 40/100
- Issue type
- Documentation
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- drupal, graphql, php
- Domain
- api, documentation, search
Research direction
Start by finding the existing documentation for the GraphQL Search API and the condition_group query syntax. Add the facet-exclusion explanation and the provided tagged-condition example, then verify the documentation clearly explains that conditions tagged for a facet do not alter that facet's counts.
Written by the indexing model from the issue text.
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.
- Dominant language
- PHP
- Stars
- 10
- Forks
- 24
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from drupal-graphql/graphql-search-api
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
-
Graphql v4Open
Difficulty 5/5 Over a week Newbie friendliness 20/100
drupal-graphql/graphql-search-api#55 · 4 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 42/100
drupal-graphql/graphql-search-api#54 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 48/100
-
Mulitvalued custom field results are incompletePossibly taken @carolpettirossi claimed this 2033 days ago. Openbug needs review/QA
drupal-graphql/graphql-search-api#40 · 1 comment · 1 assignee ·
All issues in drupal-graphql/graphql-search-api
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
codeigniter4/CodeIgniter4#10616 ·
Maintainers usually reply within 1 day
-
bug code quality
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
SemanticMediaWiki/SemanticMediaWiki#7149 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
google/site-kit-wp#13825 ·
Maintainers usually reply within 3 days
-
Made by AI module: MCP type: bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day