summaryrefslogtreecommitdiffstats
path: root/sdnr/wt/devicemanager/provider/src/main/resources/elasticsearch/plugins/head/test/generators/conflictingField.sh
diff options
context:
space:
mode:
authorHerbert Eiselt <herbert.eiselt@highstreet-technologies.com>2019-02-07 17:50:41 +0100
committerHerbert Eiselt <herbert.eiselt@highstreet-technologies.com>2019-02-07 17:51:11 +0100
commit12a8c669f52c0e84d580c078cee849b25133b585 (patch)
tree1a0ddb6cc13f225e8a58833b8975f98b453a8d52 /sdnr/wt/devicemanager/provider/src/main/resources/elasticsearch/plugins/head/test/generators/conflictingField.sh
parentbd2aa3c75e0073ff07fb46b14b8b51926915d5c8 (diff)
Add sdnr wt devicemanager
Add complete sdnr wireless transport app devicemanager Change-Id: I433014ee579a3c8833b3b8f84c4087c5f776704f Issue-ID: SDNC-575 Signed-off-by: Herbert Eiselt <herbert.eiselt@highstreet-technologies.com>
Diffstat (limited to 'sdnr/wt/devicemanager/provider/src/main/resources/elasticsearch/plugins/head/test/generators/conflictingField.sh')
-rwxr-xr-xsdnr/wt/devicemanager/provider/src/main/resources/elasticsearch/plugins/head/test/generators/conflictingField.sh50
1 files changed, 50 insertions, 0 deletions
diff --git a/sdnr/wt/devicemanager/provider/src/main/resources/elasticsearch/plugins/head/test/generators/conflictingField.sh b/sdnr/wt/devicemanager/provider/src/main/resources/elasticsearch/plugins/head/test/generators/conflictingField.sh
new file mode 100755
index 000000000..917d896ca
--- /dev/null
+++ b/sdnr/wt/devicemanager/provider/src/main/resources/elasticsearch/plugins/head/test/generators/conflictingField.sh
@@ -0,0 +1,50 @@
+#!/bin/sh
+
+curl -XDELETE 'http://localhost:9200/conflicting_field_type'
+echo
+curl -XPUT 'http://localhost:9200/conflicting_field_type'
+echo
+curl -XPUT 'http://localhost:9200/conflicting_field_type/map1/_mapping' -d '{
+ "map1": {
+ "date_formats": ["date_time", "yyyyMMddHHmmss", "yyyyMMddHHmmssSSS"],
+ "_all": {
+ "enabled": true,
+ "store": "yes"
+ },
+ "properties": {
+ "field1": {
+ "type": "date",
+ "store": "yes",
+ "format": "yyyyMMddHHmmssSSS",
+ "include_in_all": false
+ }
+ }
+ }
+}'
+echo
+curl -XPUT 'http://localhost:9200/conflicting_field_type/map2/_mapping' -d '{
+ "map2": {
+ "date_formats": ["date_time", "yyyyMMddHHmmss", "yyyyMMddHHmmssSSS"],
+ "_all": {
+ "enabled": true,
+ "store": "yes"
+ },
+ "properties": {
+ "field1": {
+ "type": "string",
+ "store": "yes",
+ "term_vector": "yes",
+ "include_in_all": false
+ }
+ }
+ }
+}'
+echo
+curl -XPUT 'http://localhost:9200/conflicting_field_type/map1/1' -d '{
+ "field1" : "20110214172449000"
+}'
+echo
+curl -XPUT 'http://localhost:9200/conflicting_field_type/map2/2' -d '{
+ "field1" : "Test map2 with string type field"
+}'
+echo \ No newline at end of file