Facets with Language
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
Start by reproducing the supplied searchAPISearch query against the Drupal Search API integration, comparing the language-filtered documents with the returned facets. Trace where language: "en" is applied to results and determine whether facets use the same constraint. Done means the product facet values and counts reflect only the requested language, with coverage for this query behavior.
Written by the indexing model from the issue text.
Description
I am using the language specification in my query just fine and the results are as expected. However, the facets still return items in all languages. Is there a way to adhere the language specification to the facets?
My query
query {
searchAPISearch(
index_id: "content"
range: {offset: 0, limit: 25}
language: "en"
facets: [
{operator: "=", field: "product", limit: 0, min_count: 0, missing: false}
]
) {
result_count
documents {
... on ContentDoc {
nid
url
title
product
type
version
langcode
}
}
facets {
name
values {
count
name: filter
}
}
}
}
- 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 2043 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 78/100
Automattic/blocks-engine#3090 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
-
macOS
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
beyondcode/herd-community#1771 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 63/100
-
module: user interface priority: high severity: minor type: bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day