cozy / cozy-files

This repository was part of CozyV2 which has been deprecated
https://blog.cozycloud.cc/post/2016/11/21/On-the-road-to-Cozy-version-3
GNU Affero General Public License v3.0
41 stars 24 forks source link

Search only works for keywords with more than 5 chars #324

Open nicofrand opened 9 years ago

nicofrand commented 9 years ago

The search only works if I type more than 5 chars.

Example:

I have several files containing "kresus" in their filename.

If I type "kresus", those file appear in the search view:

cozy-files-bug

But if I type "kres" (or "kresu"), nothing appears:

cozy-files-bug2

I checked the POST requests made to /apps/files/search/content, both bodies seem ok ({"id":"kresus"} and {"id":"kres"}).

clochix commented 9 years ago

Thanks for this reports @nicofrand, we'll try to fix soon all the bugs you found on File search.

clochix commented 9 years ago

Hi @nicofrand,

This issue seems related to our demo servers. We are investigating to understand why the find is broken. But I'm unable to reproduce the problem on other instances. Does it work on your instance ?

aenario commented 8 years ago

This is the expected behaviour with current indexer configuration.

It would be better to allow search by the beginning of keyword, and eventually later with fuzzymatching. /cc @nledez which reported the same need internally.