@@ -88,6 +88,7 @@ const typesenseInstantsearchAdapter = new TypesenseInstantSearchAdapter({
8888 nodes: [
8989 {
9090 host: " localhost" ,
91+ path: ' ' , // Optional. Example: If you have your typesense mounted in localhost:8108/typesense, path should be equal to '/typesense'
9192 port: " 8108" ,
9293 protocol: " http" ,
9394 },
@@ -145,6 +146,7 @@ const typesenseInstantsearchAdapter = new TypesenseInstantSearchAdapter({
145146 {
146147 host: " localhost" ,
147148 port: " 8108" ,
149+ path: ' ' , // Optional. Example: If you have your typesense mounted in localhost:8108/typesense, path should be equal to '/typesense'
148150 protocol: " http" ,
149151 },
150152 ],
@@ -196,6 +198,7 @@ const typesenseInstantsearchAdapter = new TypesenseInstantSearchAdapter({
196198 nodes: [
197199 {
198200 host: "localhost",
201+ path: '', // Optional. Example: If you have your typesense mounted in localhost:8108/typesense, path should be equal to '/typesense'
199202 port: "8108",
200203 protocol: "http",
201204 },
@@ -236,6 +239,7 @@ const typesenseInstantsearchAdapter = new TypesenseInstantSearchAdapter({
236239 nodes: [
237240 {
238241 host: " localhost" ,
242+ path: ' ' , // Optional. Example: If you have your typesense mounted in localhost:8108/typesense, path should be equal to '/typesense'
239243 port: " 8108" ,
240244 protocol: " http" ,
241245 },
@@ -317,7 +321,7 @@ For Federated / Multi-Index Search, you'd need to use the `index` widget. To the
317321const typesenseInstantsearchAdapter = new TypesenseInstantSearchAdapter ({
318322 server: {
319323 apiKey: " abcd" , // Be sure to use an API key that only allows search operations
320- nodes: [{ host: " localhost" , port: " 8108" , protocol: " http" }],
324+ nodes: [{ host: " localhost" , path : ' / ' , port: " 8108" , protocol: " http" }],
321325 },
322326 // Search parameters that are common to all collections/indices go here:
323327 additionalSearchParameters: {
@@ -351,6 +355,7 @@ const typesenseInstantsearchAdapter = new TypesenseInstantSearchAdapter({
351355 {
352356 host: " localhost" ,
353357 port: " 8108" ,
358+ path: " /" ,
354359 protocol: " http" ,
355360 },
356361 ],
0 commit comments