Skip to content

Commit 3af40c6

Browse files
committed
Update to mapping template for semantic search
1 parent b522785 commit 3af40c6

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

docs/cloudformation/geocore-semantic-search-with-opensearch.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,10 @@ Resources:
577577
"end": "$input.params('end')",
578578
"org": "$input.params('org')",
579579
"type": "$input.params('type')",
580+
"protocol": "$input.params('protocol')",
581+
"mappable": "$input.params('mappable')",
580582
"theme": "$input.params('theme')",
583+
"topic_category": "$input.params('topic_category')",
581584
"foundational": "$input.params('foundational')",
582585
"source_system": "$input.params('source_system')",
583586
"eo_collection": "$input.params('eo_collection')",
@@ -588,7 +591,11 @@ Resources:
588591
"order": "$input.params('order')",
589592
"size": "$input.params('size')",
590593
"from": "$input.params('from')",
591-
"userAgent": "$input.params().header.get('User-Agent')"
594+
"ip_address_forward": "$input.params().header.get('X-Forwarded-For')",
595+
"ip_address": "$context.identity.sourceIp",
596+
"timestamp": "$context.requestTimeEpoch",
597+
"user_agent": "$context.identity.userAgent",
598+
"http_method": "$context.httpMethod"
592599
}
593600
options:
594601
consumes:

0 commit comments

Comments
 (0)