
Drupal Search API - multi index View search on two fields
- or -
Post a project like this2653
$$
- Posted:
- Proposals: 14
- Remote
- #2144032
- Awarded
PHP Laravel Developer | AWS | Web Application | Codeigniter Developer| WordPress | Woocommerce | Shopify

Top rated PHP Web Development | WordPress | Magento | Drupal | OpenCart | PrestaShop | Joomla

React Native|React|Node|APi | dashboard| Laravel | Go high Level | Flutter, SEO, PPC | Ai Automation|Webflow|Shopify|CRM|App|Zoho|


Web & Apps Development || Python || Drupal
84059519734551727862346086237915647173510507541764398885977231025723485652180235
Description
Experience Level: Intermediate
We have a D7 site using Search API with two indexes (one for nodes, one for comments on those nodes).
We are displaying the contents of in the indexes combined in a view using https://www.drupal.org/project/search_api_multi which lets us show both indexes in a single view, one entity (either a node or a comment) per row.
We have one remaining issue which is to sort the results of the view by entity creation date. As these are different entities with separately indexed creation dates we need to combine the entity creation date fields for each in order to sort. Standard contrib modules for doing this such as Views PHP Sort don't appear to work, most likely because of an incompatibility with Search API. I'm expecting that a custom module will need to be written for this.
We are displaying the contents of in the indexes combined in a view using https://www.drupal.org/project/search_api_multi which lets us show both indexes in a single view, one entity (either a node or a comment) per row.
We have one remaining issue which is to sort the results of the view by entity creation date. As these are different entities with separately indexed creation dates we need to combine the entity creation date fields for each in order to sort. Standard contrib modules for doing this such as Views PHP Sort don't appear to work, most likely because of an incompatibility with Search API. I'm expecting that a custom module will need to be written for this.
Kat E.
100% (8)Projects Completed
5
Freelancers worked with
1
Projects awarded
33%
Last project
13 Aug 2020
United Kingdom
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-

Kate
Your site url pls -

Kat , please share your website link.
711855711706
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies