VeggieMeat / search_api_elasticsearch

Clone of project at drupal.org/project/search_api_elasticsearch for better CI options than what D.O offers
16 stars 8 forks source link

autocompletesuggestions function arguments #33

Open VeggieMeat opened 10 years ago

VeggieMeat commented 10 years ago

Original issue: https://www.drupal.org/node/2324619

Hi,

I'm using the autocompletesuggestions function, but i don't really understand how it works.

At the begining, I thought that "$key_user" should contain the complete words of the request, and "$incomplete_key" the incomplete word.
But i noticed that some arguments are not used to generate the result like "$search" and "$incomplete_key".
So i'm a little lost, should "$key_user" contain the complete user request ?

Useless arguments and variables should'nt be removed ?

Thanks in advance.