forked from searchisko/elasticsearch-river-remote
-
Notifications
You must be signed in to change notification settings - Fork 0
/
river_configuration_example.json
63 lines (63 loc) · 2.3 KB
/
river_configuration_example.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
{
"type" : "remote",
"remote" : {
"urlGetDocuments" : "https://system.org/rest/document?docSpace={space}&docUpdatedAfter={updatedAfter}",
"username" : "remote_username",
"pwd" : "remote_user_password",
"timeout" : "5s",
"spacesIndexed" : "ORG,AS7",
"indexUpdatePeriod" : "5m",
"indexFullUpdatePeriod" : "1h",
"maxIndexingThreads" : 2
},
"index" : {
"index" : "my_remote_index",
"type" : "remote_document",
"remote_field_document_id" : "id",
"remote_field_updated" : "fields.updated",
"preprocessors" : [
{
"name" : "Status Normalizer",
"class" : "org.jboss.elasticsearch.river.remote.preproc.StatusNormalizer",
"settings" : {
"some_setting_1" : "value1",
"some_setting_2" : "value2"
}
},
{
"name" : "Document type Normalizer",
"class" : "org.jboss.elasticsearch.river.remote.preproc.DocumentTypeNormalizer",
"settings" : {
"some_setting_1" : "value1",
"some_setting_2" : "value2"
}
}
],
"fields" : {
"created" : {"remote_field" : "fields.created"},
"updated" : {"remote_field" : "fields.updated"},
"author" : {"remote_field" : "fields.author", "value_filter" : "user"},
"content" : {"remote_field" : "fields.body"}
},
"value_filters" : {
"user" : {
"name" : "username",
"displayName" : "display_name"
}
},
"comment_mode" : "child",
"remote_field_comments" : "comments",
"remote_field_comment_id" : "id",
"comment_type" : "remote_document_comment",
"field_comments" : "comments",
"comment_fields" : {
"comment_body" : {"remote_field" : "body"},
"comment_author" : {"remote_field" : "author", "value_filter" : "user"},
"comment_created" : {"remote_field" : "created"}
}
},
"activity_log": {
"index" : "remote_river_activity",
"type" : "remote_river_indexupdate"
}
}