# Query Suggestions with Manticore Search

Query Suggestions is a powerful feature that comes built-in with Manticore Search.

## What is Query Suggestions?

Query Suggestions provide possible search queries as users type, similar to how Google predicts searches in its search box. Manticore Search offers this feature right out of the box, making it easy to integrate.

## When to use Query Suggestions?

- Enhancing user search experience
- Helping users discover related content
- Correcting typos in search queries
- Guiding users towards popular or trending searches
- Assisting users in formulating more specific queries
- Improving search relevancy and results
- Analyzing user search patterns and behavior
- Optimizing product discovery for e-commerce
- Enhancing internal site search functionality


## Why Manticore Search is good for Query Suggestions

- It's readily available with Manticore Search; simply install and use the `CALL AUTOCOMPLETE` SQL statement or `/autocomplete` JSON endpoint to start generating query suggestions.
- Manticore Search offers flexible configuration options to customize suggestions to your needs.
- You can use both high-level methods like `CALL AUTOCOMPLETE` and low-level methods for advanced customization.


## Pros

- Easy-to-use, built-in method: `CALL AUTOCOMPLETE` SQL or `/autocomplete` JSON query.
- Flexible configuration options for fine-tuning suggestions.
- Supports both exact and fuzzy matching.
- Efficient performance on various dataset sizes.
- Ability to reject unwanted suggestions.
- Compatible with both SQL and JSON interfaces.


## Cons

- May require careful tuning for optimal results on very large datasets.
- Suggestions are based on indexed data, requiring regular updates to keep content fresh.
- Advanced customization might require a deep understanding of underlying algorithms.


## How to get started

### Install Manticore Search

- Follow the [installation instructions](/install/) for your operating system.
- Alternatively, use Docker: `docker pull manticoresearch/manticore:dev`.


### Prepare your Manticore Search table

- Create a table.
- Configure full-text fields and attributes.
- Index your data using the appropriate method (SQL, JSON, CSV, etc.).


### Implement Query Suggestions

- Use the `CALL AUTOCOMPLETE` SQL statement or `/autocomplete` JSON endpoint to get query suggestions.
- Implement a client-side request to query Manticore Search.
- Process the response and present suggestions to the user.


### Optimize your Query Suggestions

- Pass additional parameters to the `CALL AUTOCOMPLETE` function, such as `expansion_len`, `fuzziness`, `append`, `prepend`, `layouts`, etc.
- Use `fuzziness` to control the level of fuzzy matching in suggestions.


### Leverage Query Suggestions

- Enjoy powerful and efficient query suggestions with Manticore Search.
- If you encounter any issues, [report them on GitHub](https://github.com/manticoresoftware/manticoresearch/).
- Consider our [professional services](/services/) for advanced implementation and optimization.


## Resources

- [Query Suggestions Demo](https://github.manticoresearch.com/manticoresoftware/manticoresearch)
- [Query Suggestions Documentation - CALL AUTOCOMPLETE](https://manual.manticoresearch.com/Searching/Autocomplete)
- [Low level CALL QSUGGEST Documentation](https://manual.manticoresearch.com/Searching/Spell_correction#CALL-QSUGGEST,-CALL-SUGGEST)


## Learn more about other use cases

Do not stop here when learning when you need **AI Database** and how **Manticore Search** can help you. There are many other use cases that you can explore.


## Get Started with Query Suggestions in Manticore Search

Enhance your search functionality with Query Suggestions today!

[Install Now](/install)
