Skip to content

Facets with Language #35

Open
Open
@philip-elevated

Description

@philip-elevated

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
      }
    }
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions