Skip to content

Commit 030420c

Browse files
author
Julien Ruaux
committed
docs: Documented additional config params in README
1 parent 79cb019 commit 030420c

File tree

2 files changed

+19
-3
lines changed

2 files changed

+19
-3
lines changed

README.adoc

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,18 @@ See the https://github.com/lettuce-io/lettuce-core/wiki/Redis-URI-and-connection
4242
+
4343
This property is required and has no default. A Redis URI must be provided to connect to RediSearch.
4444

45+
`redisearch.username`:: Redis connection username.
46+
47+
`redisearch.password`:: Redis connection password.
48+
49+
`redisearch.insecure`:: Allow insecure connections (e.g. invalid certificates) to Redis when using SSL.
50+
+
51+
This property is optional and the default is `false`.
52+
53+
`redisearch.timeout`:: Redis command timeout in seconds.
54+
+
55+
This property is optional and the default is `60`.
56+
4557
`redisearch.case-insensitive-name-matching`:: Match index names case insensitively.
4658
+
4759
This property is optional and the default is `false`.
@@ -50,6 +62,10 @@ This property is optional and the default is `false`.
5062
+
5163
This property is optional and the default is `10000`.
5264

65+
`redisearch.cursor-count`:: Number of rows read during each https://redis.io/docs/stack/search/reference/aggregations/#cursor-api[aggregation cursor] fetch.
66+
+
67+
This property is optional and if it is not specified the RediSearch default is used.
68+
5369

5470
== Docker Example
5571

@@ -122,14 +138,14 @@ redisearch.uri=redis://localhost:6379
122138
+
123139
[source,console]
124140
----
125-
`trino-server start`
141+
trino-server start
126142
----
127143

128144
2. Connect to Trino using the CLI:
129145
+
130146
[source,console]
131147
----
132-
`trino --catalog redisearch --schema default`
148+
trino --catalog redisearch --schema default
133149
----
134150

135151
3. Run a SQL query:

src/main/java/com/redis/trino/RediSearchConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public class RediSearchConfig {
4747
private boolean caseInsensitiveNameMatching;
4848
private boolean insecure;
4949
private boolean tls;
50-
private long timeout;
50+
private long timeout = 0; // Use Lettuce default
5151
private long defaultLimit = DEFAULT_LIMIT;
5252
private long cursorCount = 0; // Use RediSearch default
5353
private long tableCacheExpiration = DEFAULT_TABLE_CACHE_EXPIRATION.toSeconds();

0 commit comments

Comments
 (0)