For the complete documentation index, see llms.txt. This page is also available as Markdown.

Meilisearch

Returns the Meilisearch fluent DSL entry point for interacting with a Meilisearch search engine instance.

This function provides access to the complete Meilisearch API through a fluent, chainable interface. It reads connection settings from the module configuration and returns a DSL object that allows you to manage indexes, documents, search operations, settings, API keys, and tasks.

The connection is configured through the module settings in boxlang.json or via environment variables. See the Meilisearch module documentation for configuration details.

Method Signature

Meilisearch()

Arguments

This function takes no arguments. All configuration is handled through module settings.

Examples

Basic Usage

Get the Meilisearch DSL entry point:

meili = meilisearch()

Creating an Index

Create a new index with a specific primary key:

meilisearch()
    .index( "books" )
    .create( "id" )

Adding Documents

Add or replace documents in an index:

Searching Documents

Perform a basic search:

Advanced Search with Filters

Chain multiple search parameters for advanced queries:

Listing All Indexes

Retrieve a list of all indexes:

Getting Index Statistics

Retrieve statistics for a specific index:

Updating Index Settings

Configure searchable attributes and other index settings:

Deleting Documents

Delete a single document by ID:

Delete all documents from an index:

Search for facet values within a given facet:

Managing API Keys

List all API keys:

  • http() - HTTP client used internally by the Meilisearch module

Additional Resources

Last updated

Was this helpful?