1
0
mirror of https://github.com/oceanprotocol/docs.git synced 2024-11-26 19:49:26 +01:00

Issue-545: Add description in search index

This commit is contained in:
Akshay 2021-09-13 00:15:56 +02:00
parent a52b53a48c
commit e4aa6aaf85

View File

@ -64,6 +64,7 @@ const SearchClient = ({ searchableData }) => {
// } = searchState
const dataToSearch = new JsSearch.Search('title')
dataToSearch.addIndex('title')
dataToSearch.addIndex('description')
dataToSearch.addDocuments(searchableData)
setSearchState({