Cannot see data in views after adding filters.

Created on 28 April 2022, over 2 years ago
Updated 28 August 2024, 3 months ago

Problem/Motivation

The view doesnโ€™t show indexed data when 1 or more filters are applied. When filters are removed, it shows all the content from all the configured datasources.

Steps to reproduce

  1. Create a view of an Algolia indexed content.
  2. Add content type filter or status filter and preview the result.
  3. Data gets disappeared from the preview.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

๐Ÿ› Bug report
Status

Active

Version

3.0

Component

Code

Created by

๐Ÿ‡ฎ๐Ÿ‡ณIndia psingh10

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • ๐Ÿ‡ฒ๐Ÿ‡พMalaysia jonloh

    Not sure if this is related, but it seems that if I add Sort Criteria, there will be no results returned as well.

    Checking the logs in Algolia, it seems Drupal is appending the field names into the API URL somehow, causing it 404 error.

  • ๐Ÿ‡ฒ๐Ÿ‡พMalaysia jonloh

    Ok my apologies, I believe my comment above can be ignored.

    Apparently you will need to create a Replica manually in Algolia dashboard. The replica's name follows the index in the URL generated in Drupal - In my case above, the name is directory_test_created_1_asc. Then in that Replica's index, go to Configuration > Ranking and Sorting > Create the field that you want to sort.

    I supposed the sorting is not really in synced with Drupal Views for now.

Production build 0.71.5 2024