Adding this module after having created a working index and search page with search_api, it was totally undocumented and therefore unclear whether and where one has to activate the autocomplete functionality. I was "debugging" the module in code for half an hour, wondering why there are entities created in the database, before i accidentally stumbled accross the "Autocomplete" tab on the search index detail pages.

Please document how to enable this module's functionality in its README.txt and with a short hint on the module's project page as well - this is a quickfix taking only a few minutes and would help enormously. Text suggestions:

INSTALLATION

After having installed and enabled the module, you have to do some administrative steps to activate the autocomplete functionality:

Enabling autocomplete for search pages

To add autocomplete functionality to an search_api index, visit this index's edit page and click on the "Autocomplete" tab. There, check the search pages you wish to use autocomplete and hit "Save". You can further customize a search page's autocomplete settings (like result count exstimates) by clicking on the "edit" link next to the search page autocomplete line on the "Autocomplete" tab's page.

Enabling autocomplete for search_api views

[[no idea how this would work, please document it ;]]

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

drunken monkey’s picture

Status: Active » Fixed

Done, thanks for the suggestion!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

N20’s picture

Hi, im trying to figure out how to use the module with Views. Are there any setup steps to be done besides activating the autocomplete feature in the index settings?

N20’s picture

Status: Closed (fixed) » Active
fraweg’s picture

Hello,

for me autocomplete does also not work! I need more documentation too...

Best regards
Frank

fraweg’s picture

Hello N20,

did you solve the problem?

Best regards
Frank

drunken monkey’s picture

Priority: Major » Normal

Your view needs to have an exposed "Search: Fulltext search" filter, autocomplete will only be added to those.
Other than that, no, no other setup steps should be necessary.

fraweg’s picture

FileSize
193.6 KB
356.18 KB
330.02 KB
309.37 KB

Hello drunken monkey,

thanks for your answer in this issue.

What I have done:
-I have install and activate your module and create indexes in seach api
-I have make a view to search in this indexes and I do it with the Fulltext search

But the autocomplete does not work. I have added screenshots...maybe you see something is missing.

Best regards
Frank

drunken monkey’s picture

Ah, OK, I see what the problem is! You're using the Multi-Index Searches module, which isn't supported by the Autocomplete module yet.

Sorry, maybe support will be added in the future.
Please review whether you think the attached changes to the README.txt would be helpful (the last addition, the former ones are just tidying up for some recent additions).

Edit: Please ignore the patch attached to this comment and see the next one.

drunken monkey’s picture

Status: Active » Needs review
FileSize
1.16 KB

Sorry, completely wrong patch there.

fraweg’s picture

Hello,

thanks for your answer. I really hope that this feature will be integrated.

Best regsrads
Frank

drunken monkey’s picture

Status: Needs review » Fixed

Committed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

changed html formatting