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
@@ -178,16 +196,18 @@ By default, go-redis automatically sends the client library name and version dur
178
196
179
197
#### Disabling Identity Verification
180
198
181
-
When connection identity verification is not required or needs to be explicitly disabled, a `DisableIndentity` configuration option exists. In V10 of this library, `DisableIndentity` will become `DisableIdentity` in order to fix the associated typo.
199
+
When connection identity verification is not required or needs to be explicitly disabled, a `DisableIdentity` configuration option exists.
200
+
Initially there was a typo and the option was named `DisableIndentity` instead of `DisableIdentity`. The misspelled option is marked as Deprecated and will be removed in V10 of this library.
201
+
Although both options will work at the moment, the correct option is `DisableIdentity`. The deprecated option will be removed in V10 of this library, so please use the correct option name to avoid any issues.
182
202
183
-
To disable verification, set the `DisableIndentity` option to `true` in the Redis client options:
203
+
To disable verification, set the `DisableIdentity` option to `true` in the Redis client options:
184
204
185
205
```go
186
206
rdb:= redis.NewClient(&redis.Options{
187
207
Addr: "localhost:6379",
188
208
Password: "",
189
209
DB: 0,
190
-
DisableIndentity: true, // Disable set-info on connect
210
+
DisableIdentity: true, // Disable set-info on connect
In the Redis-Search module, **the default dialect is 2**. If needed, you can explicitly specify a different dialect using the appropriate configuration in your queries.
215
235
216
-
## Contributing
236
+
**Important**: Be aware that the query dialect may impact the results returned. If needed, you can revert to a different dialect version by passing the desired dialect in the arguments of the command you want to execute.
237
+
For example:
238
+
```
239
+
res2, err:= rdb.FTSearchWithArgs(ctx,
240
+
"idx:bicycle",
241
+
"@pickup_zone:[CONTAINS $bike]",
242
+
&redis.FTSearchOptions{
243
+
Params: map[string]interface{}{
244
+
"bike": "POINT(-0.1278 51.5074)",
245
+
},
246
+
DialectVersion: 3,
247
+
},
248
+
).Result()
249
+
```
250
+
You can find further details in the [query dialect documentation](https://redis.io/docs/latest/develop/interact/search-and-query/advanced-concepts/dialects/).
217
251
218
-
Please see [out contributing guidelines](CONTRIBUTING.md) to help us improve this library!
252
+
## Contributing
253
+
We welcome contributions to the go-redis library! If you have a bug fix, feature request, or improvement, please open an issue or pull request on GitHub.
254
+
We appreciate your help in making go-redis better for everyone.
255
+
If you are interested in contributing to the go-redis library, please check out our [contributing guidelines](CONTRIBUTING.md) for more information on how to get started.
0 commit comments