tmail-flutter icon indicating copy to clipboard operation
tmail-flutter copied to clipboard

Autocomplete doesn't suggest correctly when searching recipients

Open tuanlc opened this issue 2 years ago • 9 comments

Description

When composing a new email, and enter recipient's email, the suggestions from the app are not correct

Expected result

Suggest the results that close with the search terms

Reproduction Steps

https://user-images.githubusercontent.com/7950991/183332948-0ae29c94-9574-4db6-890c-f5ea21760528.mp4

Context

  • Devices: Desktop
  • OS: Arch linux
  • Browser: Firefox 102.0.1 (64-bit)

tuanlc avatar Aug 08 '22 03:08 tuanlc

Configuration issue,

Also we might consider n-graming only the local part?

chibenwa avatar Aug 08 '22 03:08 chibenwa

What is n-gramming?

hoangdat avatar Aug 08 '22 04:08 hoangdat

Basically for search we cut [email protected] in 3-grams (ie 3 letters) (so vnh nhr hr@....com`) and index those (build a reverse index & search.

chibenwa avatar Aug 08 '22 04:08 chibenwa

You mean:

  • Client should cut the input text to n-gram to make autocomplete/get request?

hoangdat avatar Aug 08 '22 04:08 hoangdat

@chibenwa

Also we might consider n-graming only the local part?

It's good to start and see the feedback from users

tuanlc avatar Aug 08 '22 08:08 tuanlc

The issue isn't fixed and it seems even worse. The autocomplete feature doesn't work now :cry:

tuanlc avatar Aug 22 '22 04:08 tuanlc

Hi @chibenwa any update for this ticket and #812 also

hoangdat avatar Aug 22 '22 05:08 hoangdat

Not a (code) bug but more a configuration limitation.

I do not have LDAP schemas details, hence cannot help on this.

chibenwa avatar Aug 22 '22 05:08 chibenwa

okie, so I open this ticket to keep it on radar.

hoangdat avatar Aug 22 '22 07:08 hoangdat