Closed (fixed)
Project:
Search API Algolia
Version:
3.0.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Apr 2022 at 10:34 UTC
Updated:
17 Oct 2025 at 12:49 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
robertoperuzzoHi, I'm facing the same issue.
I added the 'status' field in the Search API index as a "Boolean" and added the filter "Content datasource: Published (= True)" in my view.
The resulting query is
I'm investigating.
Comment #3
robertoperuzzoComment #4
jonloh commentedNot 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.
Comment #5
jonloh commentedOk 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.
Comment #6
davps commentedComment #8
davps commentedMR #35 contains fixes for filter value with boolean type.
Comment #10
davps commentedThanks all for the reports and troubleshooting.
The sorting issue will be fixed in a separate task.