obiba / mica2

Mica is a web portal for epidemiological study consortia.
http://www.obiba.org/pages/products/mica/
GNU General Public License v3.0
10 stars 15 forks source link

MK-1729: Improve the auto-suggestion in the search box #3423

Open ymarcon opened 6 years ago

ymarcon commented 6 years ago

Jira issue originally created by user @Rima-B:

taper CLSA dans la boite de recherche de VARIABLE. Cela retourne deux labels qui contiennent le mot clsa. C'est correct de retourner ces variables, mais on doit toujours afficher le nom de la variables dans la liste des suggestions, pas juste le label. Pour n'importe quelle recherche, la suggestion doit toujours comprendre le nom de l'entité correspondante et en dessous 'l'explication', c'est a dire le match (probablement en caractere gras).

exemple. Aller a dcc.icgc.org et taper dans la grosse boite de recherche le mot BRAF; Le nom de l'entité apparait en premier avec en dessous le match en caractere gras

Donc pour Variable, afficher le name, pour Dataset/Study/Network, afficher l'acronyme

ymarcon commented 6 years ago

Comment created by @meek0:

Might also take note that if the name/acronym of the document is repeated it should not be set at all.

ymarcon commented 6 years ago

Comment created by @Rima-B:

There is a real difference between the current suggestion that suggests only free text and the required suggestion in the JIRA which is, in fact, a document search as in Opal

meek0 commented 4 years ago

https://www.elastic.co/guide/en/elasticsearch/reference/2.4/search-suggesters.html Coupled with analyzers that could help (mica_index_analyzer is not adequate, might need something simpler). Phrase suggester might be a good starting point to test.