aboutsummaryrefslogtreecommitdiffstats
path: root/search-data-service-app/src/main/resources
diff options
context:
space:
mode:
authorEdwin Lawrance <Edwin.Lawrance@amdocs.com>2019-03-04 11:08:03 +0000
committerEdwin Lawrance <Edwin.Lawrance@amdocs.com>2019-03-04 11:08:03 +0000
commit57ccc376054d09367dc4bf8855adea1f19a87b3f (patch)
tree67de91111838b3f3da1f395896f1704c1cb68464 /search-data-service-app/src/main/resources
parent82a366e562c5517a9b66fb647bfb699530e19ca3 (diff)
Update poms to conform to merge job requirements
Change-Id: Ic989e9538b67214e43faf221724ed5d36bfc6d03 Issue-ID: AAI-2203 Signed-off-by: Edwin Lawrance <Edwin.Lawrance@amdocs.com>
Diffstat (limited to 'search-data-service-app/src/main/resources')
-rw-r--r--search-data-service-app/src/main/resources/application.properties4
-rw-r--r--search-data-service-app/src/main/resources/banner.txt5
-rw-r--r--search-data-service-app/src/main/resources/json/schema/analyzer.schema.json29
-rw-r--r--search-data-service-app/src/main/resources/json/schema/document-field.schema.json37
-rw-r--r--search-data-service-app/src/main/resources/json/schema/document.schema.json15
-rw-r--r--search-data-service-app/src/main/resources/json/schema/filter.schema.json17
-rw-r--r--search-data-service-app/src/main/resources/logging/SearchDbMsgs.properties123
7 files changed, 230 insertions, 0 deletions
diff --git a/search-data-service-app/src/main/resources/application.properties b/search-data-service-app/src/main/resources/application.properties
new file mode 100644
index 0000000..ae8f9c3
--- /dev/null
+++ b/search-data-service-app/src/main/resources/application.properties
@@ -0,0 +1,4 @@
+server.ssl.key-store=/opt/app/search-data-service/config/auth/tomcat_keystore
+server.ssl.enabled=true
+server.port=9509
+server.ssl.enabled-protocols=TLSv1.1,TLSv1.2
diff --git a/search-data-service-app/src/main/resources/banner.txt b/search-data-service-app/src/main/resources/banner.txt
new file mode 100644
index 0000000..117d1e4
--- /dev/null
+++ b/search-data-service-app/src/main/resources/banner.txt
@@ -0,0 +1,5 @@
+ ____ _ ____ ____ _ _ _ _ _
+/ ___| ___ __ _ _ __ ___| |__ | _ \| __ ) / \ | |__ ___| |_ _ __ __ _ ___| |_(_) ___ _ __
+\___ \ / _ \/ _` | '__/ __| '_ \ _____ | | | | _ \ _____ / _ \ | '_ \/ __| __| '__/ _` |/ __| __| |/ _ \| '_ \
+ ___) | __/ (_| | | | (__| | | | |_____| | |_| | |_) | |_____| / ___ \| |_) \__ \ |_| | | (_| | (__| |_| | (_) | | | |
+|____/ \___|\__,_|_| \___|_| |_| |____/|____/ /_/ \_\_.__/|___/\__|_| \__,_|\___|\__|_|\___/|_| |_|
diff --git a/search-data-service-app/src/main/resources/json/schema/analyzer.schema.json b/search-data-service-app/src/main/resources/json/schema/analyzer.schema.json
new file mode 100644
index 0000000..7592ee9
--- /dev/null
+++ b/search-data-service-app/src/main/resources/json/schema/analyzer.schema.json
@@ -0,0 +1,29 @@
+{
+ "$schema": "http://json-schema.org/draft-04/schema#",
+ "title": "Analyzer",
+ "description": "The analyzer aggregates a tokenizer and multiple filters to describe how an input stream should be indexed.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "description": {
+ "type": "string"
+ },
+ "behaviours": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "tokenizer": {
+ "type": "string"
+ },
+ "filters": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ }
+} \ No newline at end of file
diff --git a/search-data-service-app/src/main/resources/json/schema/document-field.schema.json b/search-data-service-app/src/main/resources/json/schema/document-field.schema.json
new file mode 100644
index 0000000..78d6cba
--- /dev/null
+++ b/search-data-service-app/src/main/resources/json/schema/document-field.schema.json
@@ -0,0 +1,37 @@
+{
+ "$schema": "http://json-schema.org/draft-04/schema#",
+ "title": "Document Field Schema",
+ "description": "Describes the structure of a document field for storage in a document store.",
+ "type": "object",
+ "javaType": "org.onap.aai.sa.rest.DocumentFieldSchema",
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "data-type": {
+ "type": "string"
+ },
+ "format": {
+ "type": "string"
+ },
+ "searchable": {
+ "type": "boolean"
+ },
+ "search-analyzer": {
+ "type": "string"
+ },
+ "index-analyzer": {
+ "type": "string"
+ },
+ "sub-fields": {
+ "type": "array",
+ "items": {
+ "$ref": "document-field.schema.json"
+ }
+ }
+ },
+ "required": [
+ "name",
+ "data-type"
+ ]
+} \ No newline at end of file
diff --git a/search-data-service-app/src/main/resources/json/schema/document.schema.json b/search-data-service-app/src/main/resources/json/schema/document.schema.json
new file mode 100644
index 0000000..bbf3e50
--- /dev/null
+++ b/search-data-service-app/src/main/resources/json/schema/document.schema.json
@@ -0,0 +1,15 @@
+{
+ "$schema": "http://json-schema.org/draft-04/schema#",
+ "title": "Document Schema",
+ "description": "Describes the structure of a document for storage in a document store.",
+ "type": "object",
+ "javaType": "org.onap.aai.sa.rest.DocumentSchema",
+ "properties": {
+ "fields": {
+ "type": "array",
+ "items": {
+ "$ref": "document-field.schema.json"
+ }
+ }
+ }
+} \ No newline at end of file
diff --git a/search-data-service-app/src/main/resources/json/schema/filter.schema.json b/search-data-service-app/src/main/resources/json/schema/filter.schema.json
new file mode 100644
index 0000000..6d1a030
--- /dev/null
+++ b/search-data-service-app/src/main/resources/json/schema/filter.schema.json
@@ -0,0 +1,17 @@
+{
+ "$schema": "http://json-schema.org/draft-04/schema#",
+ "title": "Filter",
+ "description": "Filters accept a stream of tokens from a tokenizer and apply additional rules, possibly producing additional tokens. ",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "description": {
+ "type": "string"
+ },
+ "configuration": {
+ "type": "string"
+ }
+ }
+} \ No newline at end of file
diff --git a/search-data-service-app/src/main/resources/logging/SearchDbMsgs.properties b/search-data-service-app/src/main/resources/logging/SearchDbMsgs.properties
new file mode 100644
index 0000000..3e8de80
--- /dev/null
+++ b/search-data-service-app/src/main/resources/logging/SearchDbMsgs.properties
@@ -0,0 +1,123 @@
+#Resource key=Error Code|Message text|Resolution text|Description text
+#######
+#Newlines can be utilized to add some clarity ensuring continuing line
+#has at least one leading space
+#ResourceKey=\
+# ERR0000E\
+# Sample error msg txt\
+# Sample resolution msg\
+# Sample description txt
+#
+######
+#Error code classification category
+#000 Info/Debug
+#100 Permission errors
+#200 Availability errors/Timeouts
+#300 Data errors
+#400 Schema Interface type/validation errors
+#500 Business process errors
+#900 Unknown errors
+#
+########################################################################
+# INFO logs
+SERVICE_STARTED=\
+ SDB0001I|\
+ SearchDB Service started|\
+ NA|\
+ The SearchDB Service has been started
+ELASTIC_SEARCH_CONNECTION_SUCCESS=\
+ SDB0002I|\
+ Successfully established connection to ElasticSearch {0}|\
+ NA|\
+ Successfully established connection to ElasticSearch
+ELASTIC_SEARCH_CONNECTION_ATTEMPT=\
+ SDB0003I|\
+ Attempting to connect to ElasticSearch {0}|\
+ NA|\
+ An attempt is being made to establish connectivity to ElasticSearch
+CREATED_INDEX=\
+ SDB0019I|\
+ Index with name {0} created successfully
+DELETED_INDEX=\
+ SDB0021I|\
+ Deleted index with name {0}
+PROCESSED_BULK_OPERATIONS=\
+ SDB0022I|\
+ Successfully processed a bulk operations request.
+PROCESS_EVENT=\
+ SDB0041I|\
+ Processed event {0}. Result: {1}
+PROCESS_INLINE_QUERY=\
+ SDB0042I|\
+ Processing inline query: {0}
+PROCESS_PAYLOAD_QUERY=\
+ SDB0043I|\
+ Processing query - operation: {0} against URL: {1}
+# INFO Level Metrics Logs
+CREATE_INDEX_TIME=\
+ SDB0020I|\
+ Create index request for index {0} document type {1}
+DELETE_INDEX_TIME=\
+ SDB0022I|\
+ Delete index request for index {0}
+CREATE_DOCUMENT_TIME=\
+ SDB0023|\
+ Create document in index {0}
+UPDATE_DOCUMENT_TIME=\
+ SDB0024|\
+ Update document in index {0} with id {1}
+DELETE_DOCUMENT_TIME=\
+ SDB0025|\
+ Delete document in index {0} with id {1}
+GET_DOCUMENT_TIME=\
+ SDB0026|\
+ Get document from index {0} with id {1}
+QUERY_DOCUMENT_TIME=\
+ SDB0027|\
+ Query request for index {0} with query string {1}
+BULK_OPERATIONS_TIME=\
+ SDB0028|\
+ Bulk operations request
+CHECK_INDEX_TIME=\
+ SDB0029|\
+ Check for index {0}
+# WARNING logs
+INDEX_CREATE_FAILURE=\
+ SDB0301W|\
+ Failed to create index with index name = {0}. Cause: {1}|\
+ Check cause. It is possible the index already exists.|\
+ Failed to create the specified index
+INDEX_DELETE_FAILURE=\
+ SDB0302W|\
+ Failed to delete index with index name = {0}. Cause: {1}|\
+ Check cause. It is possible the index does not exist.|\
+ Failed to delete the specified index
+FILTERS_CONFIG_FAILURE=\
+ SDB0303W|\
+ Failed to read filter configuration from file {0}. Cause: {1}
+ANALYSYS_CONFIG_FAILURE=\
+ SDB0304W|\
+ Failed to read analysis configuration from file {0}. Cause: {1}
+GET_ANALYZERS_FAILURE=\
+ SDB0305W|\
+ Failed to get analyzer definitions. Cause: {0}
+BULK_OPERATION_FAILURE=\
+ SDB0306W|\
+ Failed to execute bulk operations. Cause: {0}
+# ERROR logs
+ELASTIC_SEARCH_CONNECTION_FAILURE=\
+ SDB0501E|\
+ Failed to establish connection to ElasticSearch {0}. Cause: {1}|\
+ Check connectivity with ElasticSearch. Ensure ElasticSearch is up and reachable.|\
+ A connectivity check to ElasticSearch has failed.
+EXCEPTION_DURING_METHOD_CALL=\
+ SDB0502E|\
+ Failed to execute method {0} due to: {1}|\
+ Check error cause|\
+ Method failed to execute
+PROCESS_REST_REQUEST=\
+ SDB0503E|\
+ Received request {0} {1} from {2}. Sending response: {3}
+STARTUP_EXCEPTION=\
+ SDB0504E|\
+ Exception encountered during startup of search service: {0}