Skip to content

greenblat17/index-documents

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ЛЭТИ. Учебная практика

Сервис ввода, индексации и поиска txt-образов документов в базе данных

Задание

Приложение должно реализовывать следующие функции:

  • создание индекса базы данных документов (построения нового индекса всей базы документов). Lucene - индекс должен храниться на диске;
  • индексация вновь добавленных в БД документа;
  • очистка индекса от удаленных из БД версий документов;
  • поиск релевантных документов по введенной строке.

Tech Stack

Client: HTML, CSS, Thymeleaf

Server: Java, Spring Framework, Hibernate, Solr, PostgreSQL

Docker Launch

Build Docker Container

Pull and run docker container for Solr

  docker run -d -p 8983:8983 --name my_solr solr

Run Locally

Clone the project

  https://github.com/greenblat17/etu-educational-practice.git

Go to the project directory

  cd etu-educational-practice

Start the server

  mvn spring-boot:run

API Reference

Authentication

Registration (web page)

  GET / registration

Registration

  POST /

  {
      "username": "string"
      "password": "string"
  }

Login (web page)

  GET / login

Index documents

Upload document

  POST /api/v1/documents/upload
Parameter Type Description
file Multipart Required. document for indexing
filename String Required. document name

Update document

  PUT /api/v1/documents/update
Parameter Type Description
file Multipart Required. document for updating
filename String Required. document name

Download document

  GET /api/v1/documents/download
Parameter Type Description
file Multipart Required. document for updating
download date String Required. document upload date

Delete document

  DELETE /api/v1/documents/delete 

Search document

  GET /api/v1/documents/search
Parameter Type Description
search-line String Required. line for searching in file

Authors

About

Prototype of the service for entering, indexing and searching for txt files in the database

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published