{
"objectID": "",
"nid": "",
"label": "",, // String title of node
"image": "",, // String Absolute path to image
"entity_type": "", // String Entity type
"root_nid": // top level index nid. I.E. The Austrian
"parent_nid": // node that is referencing this item. The Austrian vol. 9 (2023)
"taxonomy_tags:": [
{
"id": "",
"name": "", // Searchable
"url": ""
}
],
"taxonomy_topics:": [
{
"id": "",
"name": "", // Searchable
"url": ""
}
],
"taxonomy_austrian_schools:": [
{
"id": "",
"name": "", // Searchable
"url": ""
}
],
"author: [
{
Name: "", // Search able
Url: "" // Absolute link
}
],
"teaser": "", // Searchable String
"body": "", // Searchable String,
"publication_type": [], // Array of strings
"mises_org_publish_date": "", // Needs to be unix timestamp,
"print_publish_date": "",
"url": "",, // String
"status": boolean // is published?
"language": "", // String,
"publication_files": [], // Need to get absolute paths to files and make array
}
Drupal Backend
Boolean field on publications. Has sub search
, makes an index in algolia
- its an index. sub_index_NID_node_title
- loop through all reference content and add it to the index. this need to be php method that takes the current node NID
- when content in tree updates update the index item
Frontend.
- use the PHP method to determine if it's in a index tree.
- if yes, then add details to drupalSettings on correct index the node is in
- search results form targets the index from drupalSettings.