nextcloud / nextcloud/fulltextsearch

indexed content special chars brake searches

Open
#248 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

1. to develop bug major
Dominant language
PHP
Stars
234
Forks
64
Avg merge
6h 18m
Merged PRs (30d)
10

Description

If the document is indexed newlines are added as \n to elasticsearch content.
Because there is no space after the \n all first words of lines arent searchable.
Same goes for other special chars like \t

curl http://localhost:9200/fulltext_search/files/104?pretty
" authentication\n\n\tManage Connected Browsers"

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue with the documented curl request to /fulltext_search/files/104 and inspect the indexed content containing escaped newlines and tabs. Trace how document text is indexed and searched, then verify that words following special characters are searchable without breaking the displayed content.

Written by the indexing model from the issue text.

Assessment

Tech stack
elasticsearch, php
Domain
backend, search
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.