Skip to main content

MeiliSearch DSL

MeiliSearch DSL is a powerful and easy-to-use Python package that provides a domain-specific language (DSL) for querying MeiliSearch, an open-source search engine. With this package, you can effortlessly build complex search queries using a Django-like Q object syntax. It also includes a convenient wrapper for MeiliSearch indexes and client, making it even simpler to interact with your MeiliSearch instance. Whether you're a beginner or an experienced developer, MeiliSearch DSL can streamline your search experience and help you create efficient, readable, and maintainable search queries.

Features

  • Django-like Q object syntax for building complex search queries
  • Convenient wrapper for MeiliSearch indexes and clients
  • Easy integration with MeiliSearch instances
  • Streamlined search interactions
  • Improved code readability and maintainability

Installation

Install the package using pip: pip install meilisearch-dsl

Usage

To use MeiliSearch DSL, first import the necessary components:

from meilisearch_dsl import Q, MeiliClient, MeiliIndex

# Then, create a MeiliSearch client and index:
client = MeiliClient(host="http://127.0.0.1:7700", master_key="your_master_key")
index = client.get_index("your_index_name")
# or
index = MeiliIndex("your_index_name", client)

# Build a search filter using the Q object syntax:
filter = ( Q(category__in=["programming", "software"])) & ~Q(price__gt=50)

# Search the index using the filter:
query="Python"
results = index.search(query, filter)
print(results)

Documentation

For more detailed information and examples, please refer to the official documentation.

Contributing

We welcome contributions from the community! Please read our contribution guidelines before submitting a pull request.

License

MeiliSearch DSL is licensed under the MIT License.

Metadata

Release files for meilisearchdsl 0.1.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for meilisearchdsl 0.1.7
File Size Uploaded
meilisearchdsl-0.1.7.tar.gz 11.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for meilisearchdsl 0.1.7
File Interpreter ABI Platform
meilisearchdsl-0.1.7-py3-none-any.whl Python 3 none any Details

Total release size: 23.7 kB

Release files / meilisearchdsl-0.1.7.tar.gz

Download URL meilisearchdsl-0.1.7.tar.gz
Size 11.5 kB
Tags Source
SHA-256 checksum
How to use checksums
89f4678de9e795e26741eeeb5e567a9fd47de6f85f287ae7a3a93868fcdc8f4e
BLAKE2b-256 checksum
How to use checksums
b7ef2efbc6a911de9ba9274ac748f14a34cfef4feb81736a670a3f7b3c548cbc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release files / meilisearchdsl-0.1.7-py3-none-any.whl

Download URL meilisearchdsl-0.1.7-py3-none-any.whl
Size 12.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6d9cc149415652e05ab543852440561560f107fe4dc7bf534f54dce3b89ab7f8
BLAKE2b-256 checksum
How to use checksums
ed0789dc576d4d0be328c98d730e24970f26f5d3147a8a6c854eef1944ac4962
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release history Release notifications | RSS feed

This release

0.1.7 This release

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page