AI-powered hybrid search is in closed beta. Join the waitlist for early access!

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.

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
Build your Next.js Shopify storefront with Blazity

Build your Next.js Shopify storefront with Blazity

Learn to build a Shopify storefront with Next.js and the Blazity commerce starter.

Laurent Cazanove
Laurent Cazanove19 Aug 2024
Meilisearch 1.8

Meilisearch 1.8

Meilisearch 1.8 brings negative keyword search, improvements in search robustness and AI search, including new embedders.

Carolina Ferreira
Carolina Ferreira07 May 2024