{"id":25478467,"url":"https://github.com/dev-vivekkumarverma/elastic-search","last_synced_at":"2026-05-10T02:03:31.102Z","repository":{"id":277520297,"uuid":"932524121","full_name":"dev-vivekkumarverma/elastic-search","owner":"dev-vivekkumarverma","description":"Hey, I am learning elastic search !","archived":false,"fork":false,"pushed_at":"2025-02-25T09:58:53.000Z","size":3497,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-18T04:12:50.196Z","etag":null,"topics":["distributed-search","distributed-search-engine","elasticsearch","python3","search"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dev-vivekkumarverma.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-02-14T03:43:13.000Z","updated_at":"2025-02-26T07:38:24.000Z","dependencies_parsed_at":"2025-02-14T11:32:53.027Z","dependency_job_id":"65a70bc4-206f-4d05-bafc-95413b0f1e21","html_url":"https://github.com/dev-vivekkumarverma/elastic-search","commit_stats":null,"previous_names":["dev-vivekkumarverma/elastic-search"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dev-vivekkumarverma/elastic-search","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-vivekkumarverma%2Felastic-search","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-vivekkumarverma%2Felastic-search/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-vivekkumarverma%2Felastic-search/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-vivekkumarverma%2Felastic-search/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dev-vivekkumarverma","download_url":"https://codeload.github.com/dev-vivekkumarverma/elastic-search/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-vivekkumarverma%2Felastic-search/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260301968,"owners_count":22988715,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["distributed-search","distributed-search-engine","elasticsearch","python3","search"],"created_at":"2025-02-18T14:33:47.865Z","updated_at":"2026-05-10T02:03:22.591Z","avatar_url":"https://github.com/dev-vivekkumarverma.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Elastic-Search\n\n\n![Elasticsearch](https://upload.wikimedia.org/wikipedia/commons/thumb/f/f4/Elasticsearch_logo.svg/512px-Elasticsearch_logo.svg.png)\n\n## Overview\nThis repository provides a comprehensive guide to setting up, configuring, and using Elasticsearch effectively with Python 3. It includes best practices, hands-on examples, and real-world use cases to help you leverage Elasticsearch for search, analytics, and data management.\n\n## Features\n- **Powerful Search Capabilities**: Supports full-text search, fuzzy matching, and relevance scoring.\n- **Scalable \u0026 Distributed**: Handles large datasets efficiently with horizontal scaling.\n- **Real-time Data Processing**: Enables quick indexing and retrieval of structured and unstructured data.\n- **Custom Mappings \u0026 Analyzers**: Define schemas and optimize search performance.\n- **Integration with Kibana \u0026 Logstash**: Provides visualization and data processing capabilities.\n\n## Getting Started\n### Prerequisites\n- Python 3.x\n- Elasticsearch and `elasticsearch-py` Python client\n- Docker (recommended) or direct installation\n- Java 11+ (if running without Docker)\n- Basic understanding of JSON and RESTful APIs\n\n### Installation\n#### Using Docker\n```bash\ndocker network create elastic\n\ndocker run --name elasticsearch --net elastic -p 9200:9200 -p 9300:9300 \\\n  -e \"discovery.type=single-node\" \\\n  -e \"xpack.security.enabled=false\" \\\n  docker.elastic.co/elasticsearch/elasticsearch:8.6.2\n```\n# or\nUse the docker compose file and run the following command\n```sh\ndocker-compose -f path/to/docker-compose.yaml up\n```\n# or [Easiest way]\nUse run.sh file\nsee run.sh file: Link \u003ca href=\"./run.sh\"\u003e[click me]\u003c/a\u003e\n```sh\n# change the chmod of the run.sh file\nchmode +x run.sh\n# execute the run.sh file\n./run.sh\n```\n#### Manual Installation\n1. [Download Elasticsearch](https://www.elastic.co/downloads/elasticsearch).\n2. Extract and navigate to the directory.\n3. Run Elasticsearch:\n   ```sh\n   ./bin/elasticsearch\n   ```\n4. Access the UI via `http://localhost:9200`.\n\n### Installing Elasticsearch Python Client\n```bash\npip install elasticsearch\n```\n\n## Basic Usage with Python\n### Connecting to Elasticsearch\n```python\nfrom elasticsearch import Elasticsearch\n\nes = Elasticsearch([\"http://localhost:9200\"])\nprint(es.info())\n```\n\n### Creating an Index\n```python\nes.indices.create(index=\"my_index\", body={\n    \"settings\": {\"number_of_shards\": 1, \"number_of_replicas\": 1}\n})\n```\n\n### Indexing a Document\n```python\ndoc = {\"title\": \"Introduction to Elasticsearch\", \"content\": \"Elasticsearch is a powerful search and analytics engine.\"}\nes.index(index=\"my_index\", id=1, document=doc)\n```\n\n### Searching Documents\n```python\nresp = es.search(index=\"my_index\", query={\"match\": {\"title\": \"Elasticsearch\"}})\nprint(resp)\n```\n\n## Folder Structure\n```\n/elastic-search\n├── configs/         # Elasticsearch configurations\n├── scripts/         # Custom automation scripts\n├── data/            # Sample datasets\n├── logs/            # Elasticsearch logs\n├── docs/            # Documentation and guides\n└── README.md        # This file\n```\n\n## Best Practices\n- Use **proper indexing strategies** to improve search efficiency.\n- Optimize **queries and filters** to reduce execution time.\n- Implement **snapshot and backup mechanisms** to prevent data loss.\n- Enable **monitoring and logging** to analyze performance and troubleshoot issues.\n\n\n## Author\n👤 **Vivek Kumar Verma**  \n📧 Contact: vivekkumarverma332@gmail.com  \n🔗 GitHub: https://github.com/dev-vivekkumarverma \n\n---\n### Happy Searching with Elasticsearch and Python! 🚀\n\nFor notes and Use : Link \u003ca href=\"notes.md\"\u003e[click me...]\u003c/a\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdev-vivekkumarverma%2Felastic-search","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdev-vivekkumarverma%2Felastic-search","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdev-vivekkumarverma%2Felastic-search/lists"}