🚀We just wrapped up the Meilisearch AI launch week. Learn more!

Go to homeMeilisearch's logo
Back to articles

Indexing optimization guide

Get a quick grasp of the best practices for fast and efficient data indexing with our short guide.

Carolina Ferreira
Carolina FerreiraDeveloper Advocate @ Meilisearch@CarolainFG
Indexing optimization guide

Adding documents to Meilisearch is taking longer than expected? The following tips will help you speed up the indexing process.

This is a very short guide. For a more comprehensive understanding, you can read our article on indexing best practices

Define searchable attributes

To speed up indexing, review the searchable attributes list and ensure it includes only the fields you want to be checked for query word matches. This improves relevance and search speed by eliminating irrelevant data and preventing unnecessary database growth.

Utilize filterable and sortable attributes

Some fields may not contain text but can still be vital for filtering and sorting results. Evaluate if numeric and boolean field values can be part of the filterable or sortable attributes lists.

Review ranking rules

Modifying ranking rules may trigger a reindexing process. Consider the impact and plan accordingly.

Optimize document size

Smaller documents are processed faster. Compress your data using methods such as br, deflate, or gzip supported by Meilisearch. Refer to the documentation for more details.

Keep up with the latest stable version

Regularly update to the latest Meilisearch release to take advantage of performance improvements that can significantly enhance indexing speed.

Conclusion

By following these recommendations, you can optimize the performance of Meilisearch and enhance the overall search experience for your users. If you have any question, you can join us on Discord.

Boost productivity and streamline development with Meilisearch Cloud. No more server deployment or manual updates. Try it free for 14 days, no credit card needed.

Happy coding!

For more things Meilisearch, subscribe to our newsletter. You can learn more about our product by checking out our roadmap and participating in our product discussions.

Meilisearch indexes embeddings 7x faster with binary quantization

Meilisearch indexes embeddings 7x faster with binary quantization

By implementing binary quantization with the vector store Arroy, significant reductions in disk space usage and indexing time for large embeddings have been achieved while maintaining search relevance and efficiency.

Tamo
Tamo29 Nov 2024
How to add AI-powered search to a React app

How to add AI-powered search to a React app

Build a React movie search and recommendation app with Meilisearch's AI-powered search.

Carolina Ferreira
Carolina Ferreira24 Sept 2024
Meilisearch is too slow

Meilisearch is too slow

In this blog post, we explore the enhancements needed for Meilisearch's document indexer. We'll discuss the current indexing engine, its drawbacks, and new techniques to optimize performance.

Clément Renault
Clément Renault20 Aug 2024