{"id":16766042,"url":"https://github.com/greenblat17/index-documents","last_synced_at":"2026-04-15T16:02:35.308Z","repository":{"id":170265716,"uuid":"643929278","full_name":"greenblat17/index-documents","owner":"greenblat17","description":"Prototype of the service for entering, indexing and searching for txt files in the database","archived":false,"fork":false,"pushed_at":"2023-05-28T08:11:33.000Z","size":102,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-16T12:15:45.810Z","etag":null,"topics":["docker","java","solr","spring"],"latest_commit_sha":null,"homepage":"","language":"Java","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/greenblat17.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}},"created_at":"2023-05-22T12:57:34.000Z","updated_at":"2024-02-26T19:18:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"d86ed88a-37bf-4af4-8215-4067e5f1b66b","html_url":"https://github.com/greenblat17/index-documents","commit_stats":null,"previous_names":["greenblat17/etu-educational-practice","greenblat17/index-documents"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/greenblat17/index-documents","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greenblat17%2Findex-documents","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greenblat17%2Findex-documents/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greenblat17%2Findex-documents/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greenblat17%2Findex-documents/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/greenblat17","download_url":"https://codeload.github.com/greenblat17/index-documents/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greenblat17%2Findex-documents/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263211211,"owners_count":23431274,"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":["docker","java","solr","spring"],"created_at":"2024-10-13T06:05:09.272Z","updated_at":"2026-04-15T16:02:30.284Z","avatar_url":"https://github.com/greenblat17.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ЛЭТИ. Учебная практика\n\nСервис ввода, индексации и поиска txt-образов документов в базе данных\n\n## Задание\n\nПриложение должно реализовывать следующие функции:\n\n- создание индекса базы данных документов (построения нового индекса всей базы документов). Lucene - индекс должен\n  храниться на диске;\n- индексация вновь добавленных в БД документа;\n- очистка индекса от удаленных из БД версий документов;\n- поиск релевантных документов по введенной строке.\n\n## Tech Stack\n\n**Client:** HTML, CSS, Thymeleaf\n\n**Server:** Java, Spring Framework, Hibernate, Solr, PostgreSQL\n\n## Docker Launch\n\n### Build Docker Container\n\nPull and run docker container for Solr\n\n```bash\n  docker run -d -p 8983:8983 --name my_solr solr\n```\n\n## Run Locally\n\nClone the project\n\n```bash\n  https://github.com/greenblat17/etu-educational-practice.git\n```\n\nGo to the project directory\n\n```bash\n  cd etu-educational-practice\n```\n\nStart the server\n\n```bash\n  mvn spring-boot:run\n```\n\n## API Reference\n\n### Authentication\n\n#### Registration (web page)\n\n```http\n  GET / registration\n```\n\n#### Registration\n\n```http\n  POST /\n\n  {\n      \"username\": \"string\"\n      \"password\": \"string\"\n  }\n```\n\n#### Login (web page)\n\n```http\n  GET / login\n```\n\n### Index documents\n\n#### Upload document\n\n```http\n  POST /api/v1/documents/upload\n```\n\n| Parameter  | Type        | Description                         |\n|:-----------|:------------|:------------------------------------|\n| `file`     | `Multipart` | **Required**. document for indexing |\n| `filename` | `String`    | **Required**. document name         |\n\n#### Update document\n\n```http\n  PUT /api/v1/documents/update\n```\n\n| Parameter  | Type        | Description                         |\n|:-----------|:------------|:------------------------------------|\n| `file`     | `Multipart` | **Required**. document for updating |\n| `filename` | `String`    | **Required**. document name         |\n\n\n#### Download document\n\n```http\n  GET /api/v1/documents/download\n```\n\n| Parameter       | Type        | Description                         |\n|:----------------|:------------|:------------------------------------|\n| `file`          | `Multipart` | **Required**. document for updating |\n| `download date` | `String`    | **Required**. document upload date  |\n\n#### Delete document\n\n```http\n  DELETE /api/v1/documents/delete \n```\n\n#### Search document\n\n```http\n  GET /api/v1/documents/search\n```\n\n| Parameter       | Type     | Description                              |\n|:----------------|:---------|:-----------------------------------------|\n| `search-line`   | `String` | **Required**. line for searching in file |\n\n## Authors\n\n- [Александр Журавлев](https://github.com/greenblat17)\n- [Лев Осипов](https://github.com/BabyJhon)\n- [Павел Зайцев](https://github.com/TrampolineZaytsev)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgreenblat17%2Findex-documents","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgreenblat17%2Findex-documents","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgreenblat17%2Findex-documents/lists"}