Manually building auto-completion

Managed by | Updated .

build_autoc

The build_autoc command can be used to generate query completion .autoc files for a collection.

This can be called to construct auto-completion from arbitrary sources.  It's commonly used post_swap or post_index to produce structured auto-completion
based off CSV data generated from the index.

Usage:

$SEARCH_HOME/bin/build_autoc  

Example:

$SEARCH_HOME/bin/build_autoc $SEARCH_HOME/data/$COLLECTION_NAME/$CURRENT_VIEW/idx/index $SEARCH_HOME/data/$COLLECTION_NAME/$CURRENT_VIEW/idx/index.suggest

Gotchas

When building auto-completion for a meta collection ensure you use the index.suggest file only from the meta collection and not from the component collections (otherwise you'll get duplicates in the suggestions).

Make sure the .autoc file that is built is copied to the meta collection's live/idx folder and that this file is pushed to any remote query processor servers.

Was this artcle helpful?

Comments