@@ -4,7 +4,7 @@ import TypesenseInstantSearchAdapter from "typesense-instantsearch-adapter";
44
55const typesenseInstantsearchAdapter = new TypesenseInstantSearchAdapter ( {
66 server : {
7- apiKey : "Sjkob6WIxE5vfpVK3Dp4FYPYFjRdWfBl " , // Be sure to use the search-only-api-key
7+ apiKey : "F3vRyCOqztwtTQqk2MK3WiUHuveNczoa " , // Be sure to use the search-only-api-key
88 nodes : [
99 {
1010 host : "144.92.48.217" ,
@@ -24,15 +24,35 @@ const typesenseInstantsearchAdapter = new TypesenseInstantSearchAdapter({
2424} ) ;
2525const searchClient = typesenseInstantsearchAdapter . searchClient ;
2626
27+ /* search.addWidget(
28+ instantsearch.widgets.sortBySelector({
29+ container: '#search-panel',
30+ indicies: [
31+ {name: 'imagej-wiki', label: 'imagej-wiki'},
32+ {name: 'imagej-tutorials', label: 'imagej-tutorials'},
33+ {name: 'imagej-website', label: 'imagej-websites'}
34+ ]
35+ })
36+ ) */
37+
2738const search = instantsearch ( {
2839 searchClient,
29- indexName : "imagej-wiki "
40+ indexName : "imagej-tutorials "
3041} ) ;
3142
3243search . addWidgets ( [
3344 instantsearch . widgets . searchBox ( {
3445 container : '#search-box' ,
3546 } ) ,
47+ // this is an attempt to add a dropdown selector to choose between collection options
48+ /* instantsearch.widgets.sortBySelector({
49+ container: '#search-dropdown', // I created search-dropdown in the html to try to add a place for the dropdown
50+ indicies: [
51+ {name: 'imagej-wiki', label: 'imagej-wiki'},
52+ {name: 'imagej-tutorials', label: 'imagej-tutorials'},
53+ {name: 'imagej-website', label: 'imagej-websites'}
54+ ]
55+ }), */
3656 instantsearch . widgets . hits ( {
3757 container : '#search-hits' ,
3858 templates : {
0 commit comments