Elasticsearch
Frequently used code for Elasticsearch
http PUT HOST:PORT/{index-name}/_alias/{alias-name}http GET HOST:PORT/{index-name}
# The resultant status code would tell if found(200, or 404)http GET HOST:PORT/_alias/{alias-name}http DELETE HOST:PORT/{index-name}# using httpie
http elasticsearch2:9200/ascendsport-en/_search?_source="question,_id,answer" Content-Type:application/json query:='{"match": {"question": "what is telegram"}}'References
Last updated