File tree Expand file tree Collapse file tree 1 file changed +94
-0
lines changed
Expand file tree Collapse file tree 1 file changed +94
-0
lines changed Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+
3+ es_host=localhost
4+ es_port=9200
5+
6+ # ##
7+ # #%L
8+ # ChannelFinder Directory Service
9+ # %%
10+ # Copyright (C) 2010 - 2016 Helmholtz-Zentrum Berlin für Materialien und Energie GmbH
11+ # %%
12+ # Copyright (C) 2010 - 2012 Brookhaven National Laboratory
13+ # All rights reserved. Use is subject to license terms.
14+ # #L%
15+ # ##
16+ # The mapping definition for the Indexes associated with the channelfinder v4
17+
18+
19+ # Create the Index
20+ curl -H ' Content-Type: application/json' -XPUT http://${es_host} :${es_port} /cf_tags? include_type_name=true -d'
21+ {
22+ "mappings":{
23+ "cf_tag" : {
24+ "properties" : {
25+ "name" : {
26+ "type" : "keyword"
27+ },
28+ "owner" : {
29+ "type" : "keyword"
30+ }
31+ }
32+ }
33+ }
34+ }'
35+
36+ curl -H ' Content-Type: application/json' -XPUT http://${es_host} :${es_port} /cf_properties? include_type_name=true -d'
37+ {
38+ "mappings":{
39+ "cf_property" : {
40+ "properties" : {
41+ "name" : {
42+ "type" : "keyword"
43+ },
44+ "owner" : {
45+ "type" : "keyword"
46+ }
47+ }
48+ }
49+ }
50+ }'
51+
52+ curl -H ' Content-Type: application/json' -XPUT http://${es_host} :${es_port} /channelfinder? include_type_name=true -d'
53+ {
54+ "mappings":{
55+ "cf_channel" : {
56+ "properties" : {
57+ "name" : {
58+ "type" : "keyword"
59+ },
60+ "owner" : {
61+ "type" : "keyword"
62+ },
63+ "script" : {
64+ "type" : "keyword"
65+ },
66+ "properties" : {
67+ "type" : "nested",
68+ "properties" : {
69+ "name" : {
70+ "type" : "keyword"
71+ },
72+ "owner" : {
73+ "type" : "keyword"
74+ },
75+ "value" : {
76+ "type" : "keyword"
77+ }
78+ }
79+ },
80+ "tags" : {
81+ "type" : "nested",
82+ "properties" : {
83+ "name" : {
84+ "type" : "keyword"
85+ },
86+ "owner" : {
87+ "type" : "keyword"
88+ }
89+ }
90+ }
91+ }
92+ }
93+ }
94+ }'
You can’t perform that action at this time.
0 commit comments