Skip to content

Commit

Permalink
Filter on search engine from algolia
Browse files Browse the repository at this point in the history
  • Loading branch information
garazdawi committed Apr 2, 2024
1 parent d36b1b4 commit 9d1b4b1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions assets/doc-search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ const docsearch = <DocSearch
appId='LUYTU1J2MB'
indexName='erlang' apiKey="86152ba1d4a9d7e179d537b8060a4c31"
searchParameters={{
filters: 'docEngine:erl_docgen',
attributesToRetrieve: [
'hierarchy.lvl0',
'hierarchy.lvl1',
Expand Down
5 changes: 4 additions & 1 deletion search.html
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,10 @@ <h3 class="hit-name lvl0">
}
}
});
search.addWidgets([
search.addWidgets([
instantsearch.widgets.configure({
filters: 'docEngine:erl_docgen'
}),
instantsearch.widgets.searchBox({
container: '#searchbox',
placeholder: 'Search erlang documentation',
Expand Down

0 comments on commit 9d1b4b1

Please sign in to comment.