Closed iamoyjj closed 4 years ago
Thanks for opening this ticket. I'll look into it tonight.
I have added this option. You can use it like this:
CREATE FOREIGN TABLE articles_es
(
id BIGINT,
title TEXT,
body TEXT,
query TEXT,
score NUMERIC
)
SERVER multicorn_es
OPTIONS
(
host 'elasticsearch',
port '9200',
index 'article-index',
type 'article',
rowid_column 'id',
query_column 'query',
score_column 'score',
timeout '20'
)
;
It is optional and defaults to 10 seconds. If you have any problems with it please raise another ticket.
I've released version 0.6.0 which includes this change.