Comment 4 for bug 864751

Revision history for this message
Jérémy Munsch (jeremy-munsch) wrote :

Hi, i am close to have a working solution here, so glad you came before is finished.

So far, the behaviors would be the following:

* The following PR would add universal search (including all special chars for many languages as possible) in the search
https://code.launchpad.net/~jeremy-munsch/synapse-project/ascii-smart

* try to search in translated title
otherwise

* tryto search in translated generic name
otherwise

* try to search in translated keywords
otherwise

* try to search in categories
otherwise

* try search in translated keywords
otherwise

* try to search in exec

Results are *weighted* and ordered in this same order, but also using Zeitgeist relevancy to adjust them.
Zeitgeist is adding value to the result, i'm still learning of it really works out there.

As for the weight of results, I’m tuning this to have as relevant results as it is possible, still some work to do.
---

Categories are never translated, how ever, i'm implementing an autotranslation option to have categories translated.
This will use http://mymemory.translated.net/api/
I would allow to have more results for example (in french cause i am sorry):

calendar -> calendrier
monitor -> moniteur
etc

So every for application that provides the calendrier key word i would also have very less - filled info - applications that are in this category. This would be optional and be deactivated by default or not, still to be determined.

---
When it search in translated fields, it is always translated *If* translation is available, otherwise it is in plain English.

Now you are making a really good point. My feeling about this is that

* For title and description, the search has to be with their display strings, so a search in english only would need to have an option to display english applications name. But both can't be done unless they are displayed both (i can't do that part since i'm a noob at using cairo).
So i may ending to include an option to use English titles only.

* Description needs to always be translated.

I think there is a reason why unity uses only Name, its because desktop files are not complete for most of all.

As for the title I’m a not closed to search in both English and translated, may be i need to be convinced, but i think this is what the maintainer would say.

Finally, please consider this, I’m only a contributor, i do the code but this have to be reviewed and accepted, I’m not affiliated with the Synapse project, I’m just like you, I want some more features here.
And no need to open a bug, we can discuss this here.