Skip to main content

Introducing PyMeilisearch

| 09.27.2023

As Ansys continues to expand our adoption of open-source, developing both our tools and supporting tools for the open-source community, we are working on projects related to many of the tools our OSS projects are using. We are excited to announce the release of our Meilisearch companion tool, PyMeilisearch.

For those unfamiliar with Meilisearch, they are an open-source core search tool with a managed search service on top. The OSS is free and a good companion for the documentation we are publishing to support our Python libraries in the PyAnsys family. It offers the types of features you expect like keyword prediction and autofill and has a simple and easy to use search bar capability. Ansys is using it with our open-source documentation that we publish on GitHub to replace the built-in search that was fragmented across the different libraries.

One challenge we encountered with using the open version of Meilisearch was the ability to quickly index and scrape our docs as part of our CI/CD pipelines. To solve this issue, we implemented a set of Python tools that made this process more streamlined and simpler to implement. Thus, PyMeilisearch was created. In essence, PyMeilisearch serves as a bridge between Python users and Meilisearch, simplifying the process of content scraping, data indexing, and source document management.

 

PyMeilisearch Example

 

You can see in the recording above the use of PyMeilisearch across two of our documentation sets that we used for our testing of the tools. It provides the ability to easily choose what source information you are searching, and the keyword prediction gives you suggested results right away when you search. A big improvement over the basic keyword search that was built in.

The team at Ansys have worked with the Meilisearch team to get the project approved and we are excited to share this tool with the wider Meilisearch community. We hope it improves your Python experience with Meilisearch and we are excited to see your feedback. You can find it here:

Repository: ansys/pymeilisearch: MeiliSearch Deployment Synchronizer (github.com) 

Documentation: PyMeilisearch documentation 0.2.2 — pymeilisearch (ansys.com)