You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/howtos/solutions/geo/getting-started-geo/index-geo-search.mdx
+50-42
Original file line number
Diff line number
Diff line change
@@ -266,7 +266,7 @@ This section outlines the implementation of the `getStoreProductsByGeoFilter` AP
266
266
267
267
4.**Result Processing**: The function filters out duplicate products across different stores, ensuring unique product listings in the final output. It then formats the store locations into a more readable structure and compiles the final list of products to return.
throw"Mandatory fields like userLocation latitude / longitude missing !"
393
+
} else {
394
+
throw'Mandatory fields like userLocation latitude / longitude missing !';
386
395
}
387
396
388
397
return {
389
398
storeProducts: trimmedStoreProducts,
390
-
productIds:Object.keys(uniqueProductIds)
399
+
productIds: Object.keys(uniqueProductIds),
391
400
};
392
401
};
393
-
394
402
```
395
403
396
404
The implementation demonstrates a practical use case for Redis's Geo Location search capabilities, showcasing how to perform proximity searches combined with other filtering criteria (like product name) and present the results in a user-friendly format.
Copy file name to clipboardexpand all lines: docusaurus.config.js
+12-11
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,7 @@
1
1
constpath=require('path');
2
2
3
3
module.exports={
4
+
clientModules: ['./redirect.js'],
4
5
title: 'The Home of Redis Developers',
5
6
tagline:
6
7
'Learn all the best practices to get up and running with Redis in no time. Get started and discover the power of Redis, whether on your local machines or in the cloud.',
@@ -181,7 +182,7 @@ module.exports = {
181
182
name: 'Tugdual Grall',
182
183
title: 'Former Technical Marketing Manager at Redis',
183
184
image: 'profile_pic_tugdual_grall.png',
184
-
}
185
+
},
185
186
},
186
187
},
187
188
themeConfig:
@@ -202,7 +203,7 @@ module.exports = {
202
203
'elixir',
203
204
'groovy',
204
205
'sql',
205
-
'typescript'
206
+
'typescript',
206
207
],
207
208
},
208
209
@@ -298,14 +299,14 @@ module.exports = {
298
299
// Useful if you want to support a single color mode
299
300
disableSwitch: false,
300
301
},
301
-
announcementBar: {
302
-
id: 'redis-7-2-release',// Any value that will identify this message.
0 commit comments