BOS Application Developers will be able to submit content generated by their users to the global B.O.S search. This content can be displayed on the search results page with attribution to the application itself. App developers will be able to specify how the search result will be rendered by providing a search result item component in configuration.
High-level solution
Developer submits a QueryAPI indexer to implement indexing logic across all smart contracts they are interested in
In the indexerLogic.js code developers can access near.org search index: context.search.add({document})
Search engine integration will provision a separate search index named after the indexer name, and collect all documents to it
/search endpoint will fetch data from all available indexes
Search results page will group results by the application name either render search result document using a standard renderer, or use a custom widget stored under <indexerDeployer.near>/searchIndex/searchItemComponent name
Description
BOS Application Developers will be able to submit content generated by their users to the global B.O.S search. This content can be displayed on the search results page with attribution to the application itself. App developers will be able to specify how the search result will be rendered by providing a search result item component in configuration.
High-level solution
indexerLogic.js
code developers can access near.org search index:context.search.add({document})
/search
endpoint will fetch data from all available indexes<indexerDeployer.near>/searchIndex/searchItemComponent
name