-
Notifications
You must be signed in to change notification settings - Fork 4
Home
Holodex is an indexing application(Holochain helper application) that is used by other HC applications for creating index and for performing searches.
To utilize the indexing services of holodex, the consumer application has to include specifications:
-
A zome named "holodex" will be added to the DNA along with the corresponding file holodex.js.
Below are the functions which need to be called :
This function takes input of json object of format : {content:<string>Content to be indexed,objHash:Hash of the object which is being indexed}
The function returns the hash of the object that was indexed upon successful indexing.
This function takes a string of words to be searched as input and returns a list of objects(hash) which contain the searched words.
-
Provide input to entry VolunteerNode (which is a part of the holodex zome) to specify whether the current node wants to serve as an index node or not.
- For index nodes : VolunteerNode = true
- For non index nodes : VolunteerNode = false
Call the index and search functions where required.