Elastic Search logo
Elastic Search
Preview of the Vultr management interface for Elastic Search on a mobile device.
Elastic Search logo|trans
Elastic Search
Preview of the Vultr server deploy page control panel for Elastic Search on a web browser.

Elastic Search is used by users to implement advanced search capabilities across various platforms. It helps businesses enhance user experiences by providing relevant and fast search results for websites, applications, and internal data. Users leverage its features for ecommerce, customer support, and workplace search, benefiting from semantic search, customizable relevance, and scalable performance. The solution allows for tailored search experiences, improving data accessibility and user engagement.

Features

  • Unified Search Experience: Seamlessly integrates search across websites, applications, and workplaces.
  • Semantic Search: Utilizes machine learning to understand user intent and improve relevance.
  • Vector Database: Employs advanced techniques for handling complex queries.
  • Flexible Deployment: Supports various deployment options, including serverless.
  • Customization and Relevance Tuning: Allows fine-tuning of search relevance to match specific business needs.
  • Scalability and Performance: Built to handle large datasets with high performance.

Learn more about Elastic Search at https://www.elastic.co/enterprise-search

1. Checking if ElasticSearch is working

Use the curl command to check if the ElasticSearch server is responding:

curl -X GET "<http://localhost:9200/>"

Or enter url in your browser

jsx http://use.your.ip:9200/

You should see a response in JSON format, similar to the one below:

json { "name" : "your-node-name", "cluster_name" : "elasticsearch", "cluster_uuid" : "cluster-uuid", "version" : { "number" : "7.x.x", "build_flavor" : "default", "build_type" : "deb", "build_hash" : "build-hash", "build_date" : "build-date", "build_snapshot" : false, "lucene_version" : "lucene-version", "minimum_wire_compatibility_version" : "minimum-wire-version", "minimum_index_compatibility_version" : "minimum-index-version" }, "tagline" : "You Know, for Search" }

2. Adding a document to ElasticSearch

Add a document to the new index test-index:

curl -X POST "<http://localhost:9200/test-index/_doc/1>" -H 'Content-Type: application/json' -d' { "title": "Test Document", "content": "This is a test document for ElasticSearch." }'

3. Retrieving the document

Check if the document has been added correctly:

curl -X GET "<http://localhost:9200/test-index/_doc/1>"

You should see a response similar to the one below:

json { "_index": "test-index", "_type": "_doc", "_id": "1", "_version": 1, "_seq_no": 0, "_primary_term": 1, "found": true, "_source": { "title": "Test Document", "content": "This is a test document for ElasticSearch." } }

4. Searching the index

Now search the test-index for documents containing the word "test":

curl -X GET "<http://localhost:9200/test-index/_search>" -H 'Content-Type: application/json' -d' { "query": { "match": { "content": "test" } } }'

You should see a response containing the document you just added:

json { "took": 30, "timed_out": false, "_shards": { "total": 1, "successful": 1, "skipped": 0, "failed": 0 }, "hits": { "total": { "value": 1, "relation": "eq" }, "max_score": 0.2876821, "hits": [ { "_index": "test-index", "_type": "_doc", "_id": "1", "_score": 0.2876821, "_source": { "title": "Test Document", "content": "This is a test document for ElasticSearch." } } ] } }

5. Security

You may want to configure your firewall, such as ufw (Uncomplicated Firewall), to allow access only from your server's IP address. This means that only your server can access the necessary resources, and all other IP addresses will be blocked.

Support Information

Support Contact

Website
https://www.elastic.co/enterprise-search
Email
info@elastic.co
Support URL
https://www.elastic.co/contact#questions
Twitter
elastic

Maintainer Contact

Report Application

Report an application with malicious intent or harmful content.

Thank you for your report!

Our Team has received your report and will respond accordingly as possible.