Account created on 15 October 2005, almost 19 years ago
#

Recent comments

🇮🇪Ireland alanburke

Thanks keepeek_dam
We're working on a migration routine and want to ensure we create the elements correctly.
We have enough information now to continue so I will close this.

🇮🇪Ireland alanburke

I can see that the JSON data is used when determing whether the element is a Video element, and hence needs the Video player.

Is there any guide to how to create the 'data' that is stored in the JSON?
It doesn't match the 2 API calls that are made. I assume it is generated inside the Keepicker element?

🇮🇪Ireland alanburke

The wrapper will have the class, not the a tag itself.

🇮🇪Ireland alanburke

Proper patch to follow. Dumping here for now
diff --git a/web/modules/contrib/search_api_decoupled/src/Controller/SearchApiEndpointController.php b/web/modules/contrib/search_api_decoupled/src/Controller/SearchApiEndpointController.php
index 6f91aacf..3d110e13 100644
--- a/web/modules/contrib/search_api_decoupled/src/Controller/SearchApiEndpointController.php
+++ b/web/modules/contrib/search_api_decoupled/src/Controller/SearchApiEndpointController.php
@@ -229,7 +229,7 @@ protected function prepareQuery(Request $request, SearchApiEndpointInterface $se

// Add conditions for all query parameters.
foreach ($request->query->all() as $key => $value) {
- if (!in_array($key, $index_fields)) {
+ if (!in_array($key, array_keys($index_fields))) {
continue;
}
if (in_array($key, $query->getFulltextFields())) {

🇮🇪Ireland alanburke

Sorting is straightforward
/jsonapi/index/main_solr?filter[fulltext]=query_term&sort=nid
will let you sort by nid
and
/jsonapi/index/main_solr?filter[fulltext]=basic&sort=-nid
will let you reverse that sort

Production build 0.71.5 2024