Problem/Motivation

Wondering how tricky it would be to provide a field to Search API to index against? So the search API view can sort on that weight.

Proposed resolution

Remaining tasks

User interface changes

API changes

Comments

Joe_Smith’s picture

This is a feature I am looking for too.

dieuwe’s picture

I'm too busy to look into writing this feature at the moment, but I'll be happy to review patches. I will add this feature to the roadmap (when I get around to publishing one).

Some links to Search API documentation:
README: http://cgit.drupalcode.org/search_api/tree/README.txt
API: http://cgit.drupalcode.org/search_api/tree/search_api.api.php

mahimajulka’s picture

I managed using the node-orders with Search API through the hook_search_api_results_alter
I got the result array in this hook and then I re-arranged the results based on node orders in the taxonomy_index table

For the taxonomy term value I parsed query for the filter condition using $query->getFilter()->__toString()

intrafusion’s picture

Status: Active » Needs review
StatusFileSize
new656 bytes

I don't believe the API is the correct way to go, I think implementing hook_entity_property_info_alter is better solution