Skip to content

Commit e53f4dc

Browse files
authored
Merge pull request #33 from cbcoutinho/feature/search
Limit search results to notes with score > 0.5
2 parents d4966fc + 8147f23 commit e53f4dc

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

.github/workflows/test.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,6 @@ jobs:
4141
done
4242
echo "Service is ready (returned 401)."
4343
44-
- name: Install notes app
45-
run: |
46-
docker compose exec app php occ app:enable notes
47-
4844
# Add subsequent steps here, e.g., running tests
4945
- name: Run tests
5046
env:
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
3+
php /var/www/html/occ app:enable notes

docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ services:
3434
- db
3535
volumes:
3636
- nextcloud:/var/www/html
37+
- ./app-hooks/post-installation:/docker-entrypoint-hooks.d/post-installation:ro
3738
environment:
3839
- NEXTCLOUD_TRUSTED_DOMAINS=app
3940
- NEXTCLOUD_ADMIN_USER=admin

nextcloud_mcp_server/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ def notes_search_notes(self, *, query: str):
211211
score = self.calculate_score(query_tokens, title_tokens, content_tokens)
212212

213213
# Only include notes with a non-zero score
214-
if score > 0:
214+
if score >= 0.5:
215215
search_results.append({
216216
"id": note.get("id"),
217217
"title": note.get("title"),

0 commit comments

Comments
 (0)