You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A Symfony application to search content within PDF files using Elasticsearch.
16
+
17
+
A Symfony application to search content within PDF files using Elasticsearch and Vue.js.
9
18
10
19
## Table of Contents
11
20
-[Description](#description)
@@ -14,24 +23,32 @@ A Symfony application to search content within PDF files using Elasticsearch.
14
23
-[Installation](#installation)
15
24
-[Docker Setup](#docker-setup)
16
25
-[Usage](#usage)
26
+
-[Development](#development)
27
+
-[Elasticsearch](#elasticsearch)
28
+
-[Troubleshooting](#troubleshooting)
17
29
-[Contributing](#contributing)
18
30
-[License](#license)
19
31
20
32
## Description
21
-
This application allows users to search for content within PDF files using Elasticsearch for efficient text searching and indexing.
33
+
This application allows users to search for content within PDF files using Elasticsearch for efficient text searching and indexing, with a modern Vue.js frontend.
22
34
23
35
## Technologies
24
-
- PHP 8.4
25
-
- Composer 2.x
36
+
- PHP 8.3
26
37
- Symfony 7.2
27
-
- Docker 27.5.1
28
-
- Elasticsearch 8.12.1
38
+
- Elasticsearch 8.17.1
39
+
- Kibana 8.17.1
40
+
- Vue.js 3.5.x
41
+
- Tailwind CSS 3.4.x
42
+
- Docker 27.5.1 & Docker Compose
43
+
- Node.js 22.x
44
+
- PostgreSQL 16
29
45
30
46
## Requirements
31
-
- Docker and Docker Compose
32
-
- PHP 8.4 or higher
47
+
- Docker 27.5.1 and Docker Compose
48
+
- PHP 8.3
33
49
- Composer 2.x
34
-
- pdftotext utility
50
+
- Node.js 22.x and npm
51
+
- pdftotext utility (poppler-utils)
35
52
36
53
## Installation
37
54
1. Clone the repository:
@@ -43,13 +60,19 @@ cd pdf-content-search
43
60
2. Install dependencies:
44
61
```bash
45
62
composer install
63
+
npm install
46
64
```
47
65
48
66
3. Install pdftotext utility:
49
67
```bash
50
68
sudo apt-get install poppler-utils
51
69
```
52
70
71
+
4. Build frontend assets:
72
+
```bash
73
+
npm run dev
74
+
```
75
+
53
76
## Docker Setup
54
77
1. Build and start the containers:
55
78
```bash
@@ -61,36 +84,102 @@ docker compose up -d --build
61
84
docker compose ps
62
85
```
63
86
87
+
3. Access services:
88
+
- Application: http://localhost
89
+
- Elasticsearch: http://localhost:9200
90
+
- Kibana: http://localhost:5601
91
+
64
92
## Usage
65
93
1. Ensure you have PDF files in the `var/pdfs/` directory
66
94
67
-
2. Index the PDF files using the command:
95
+
2. Index the PDF files:
68
96
```bash
69
-
php bin/console app:index-pdfs
97
+
docker compose execphp bin/console app:index-pdfs
70
98
```
71
99
72
-
3. Access the application at `http://localhost:8080`
0 commit comments