Searching Securely Using SSL
To securely query data from the FTS service, the user must follow these steps:
-
Provide the username and password (-u).
-
Use https protocol.
-
Specify the IP address of the server hosting the FTS service - <ip>.
-
Specify the SSL port (18094).
Example
curl -u username:password -XPOST -H "Content-Type: application/json" \
https://<ip>:18094/api/index/travel-sample-index/query \
-d '{
"explain": true,
"fields": [" * "],
"highlight": {},
"query": {
"query": "{ \"+nice +view\" }"
}
}'
Ensure that the SSL ports are enabled in the cluster. |