nextcloud / nextcloud/fulltextsearch

Search within a string or at the end of a string doesn't work

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

Nobody has claimed this yet.

Dominant language
PHP
Stars
234
Forks
64
Avg merge
6h 18m
Merged PRs (30d)
10

Description

Hi,
we have a problem with the full text search plugin, finding parts within (in the middle) or at the end of a word.

For example, I have two files
"Readme.md" with the content SkywalkerYodaJabba
"test.docx" with the content SkywalkerYodaStarwars
Pic1

If I search for skywalkeryoda, I get two results "test.docx" and "Readme.md" which is correct.
Pic2

If I search for skywalkeryodastarwars, I get one result "test.docx" which is correct.
Pic3

If I search for yoda, I get no result
Pic4

If I search for starwars, I get no result (Pic5)
PIc5

Tried also case sensitive, but doesn't change results.

Is this behavoir normal and a configuration issue within elasticsearch?

Apps

  • Full text search - 1.4.2
  • Full text search - Elasticsearch Platform 1.5.2
  • Full text search - Files 1.4.3
  • Nextcloud 19.0.3
  • elasticsearch 7.9.1

Configuration
Pic6

Perhaps this is only a configuration issue.

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

The issue names no files or tests; first reproduce the searches with the listed Full Text Search, Nextcloud, and Elasticsearch versions and inspect the Elasticsearch configuration shown. Done means searches for terms in the middle or at the end of concatenated words return the expected files, with regression coverage added for the reported examples.

Written by the indexing model from the issue text.

Assessment

Tech stack
elasticsearch, php
Domain
backend, search
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.