Rhizi / rhizi

Connective intelligence
GNU Affero General Public License v3.0
13 stars 3 forks source link

On search, Autocomplete ignoring multiple words when completing search #394

Closed Garbash closed 9 years ago

Garbash commented 9 years ago

On cri.rhizi.net, If I type "Automatisation of chemical Reactions" an autocomplete window appears suggesting me the same entity name: screen shot 2015-03-24 at 14 53 51 Clicking on the autocomplete suggestion results in this string appearing in search: "Automatisation of chemical Automatisation of chemical Reactions"

Desired behaviour would be that the text should remain the same after clicking.

It seems the code thinks the entire phrase is only the last work, and so deleted only that last word instead of the whole phrase.

This behaviour is different from how autocomplete acts in the input bar, which suggests that it might be a good idea to create a module for both of them.