Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Opensearch Bundle Laravel Package

bneumann/opensearch-bundle

View on GitHub
Deep Wiki
Context7

Commands

The bundle provides six console commands for managing OpenSearch indexes and templates.

opensearch:index:create

Create an OpenSearch index from its configured mappings and settings.

bin/console opensearch:index:create <index>
Argument/Option Description
index Index name as configured (required)
--force Delete the existing index first, then recreate it

Examples:

# Create the products index
bin/console opensearch:index:create products

# Recreate the products index (deletes existing data)
bin/console opensearch:index:create products --force

opensearch:index:reset

Delete and recreate an OpenSearch index. Equivalent to create --force.

bin/console opensearch:index:reset <index>
Argument/Option Description
index Index name as configured (required)

Examples:

bin/console opensearch:index:reset products

opensearch:index:populate

Populate an OpenSearch index by fetching objects from the configured provider and bulk-indexing them.

bin/console opensearch:index:populate <index> [--reset] [--batch-size=100] [--sleep=0]
Argument/Option Description
index Index name as configured (required)
--reset Reset the index before populating
--batch-size Number of objects per bulk request (default: 100)
--sleep Milliseconds to sleep between batches (default: 0)

The index must have a provider configured (e.g. persistence.provider: true for Doctrine ORM).

Examples:

# Populate with defaults
bin/console opensearch:index:populate products

# Reset first, then populate in batches of 500
bin/console opensearch:index:populate products --reset --batch-size=500

# Throttle to avoid overloading the cluster
bin/console opensearch:index:populate products --batch-size=200 --sleep=50

opensearch:index:alias:switch

Create a new timestamped index, optionally populate it, and atomically switch an alias to point to it. This enables zero-downtime reindexing (blue/green deployment pattern).

bin/console opensearch:index:alias:switch <index> <alias> [--populate] [--delete-old]
Argument/Option Description
index Index name as configured (required)
alias Alias name to switch (required)
--populate Populate the new index before switching
--delete-old Delete old indices that were bound to the alias

Examples:

# Create new index, populate, switch alias, and clean up
bin/console opensearch:index:alias:switch products products_live --populate --delete-old

# Switch alias without repopulating (useful if data is already in the new index)
bin/console opensearch:index:alias:switch products products_live

See Aliases cookbook for more details on blue/green reindexing.

opensearch:templates:reset

Reset all configured index templates. Iterates through every template defined in the bundle configuration and applies it to OpenSearch.

bin/console opensearch:templates:reset

This command takes no arguments or options.

Examples:

bin/console opensearch:templates:reset

See Templates for template configuration.

opensearch:debug:config

Print the fully resolved OpenSearch bundle configuration as JSON. Useful for debugging merged configuration from multiple files or environments.

bin/console opensearch:debug:config

This command takes no arguments or options.

Examples:

bin/console opensearch:debug:config

# Pipe to jq for filtering
bin/console opensearch:debug:config | jq '.indexes.products'
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
craftcms/url-validator
directorytree/privacy-filter-classifier
directorytree/privacy-filter
datacore/hub-sdk
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony
develia/geo-bundle
dreamzy/livewire-charts
touchestate-sdk/php-sdk
22h/doctrine-garbage-collection-bundle
agtp/agtp-php
agtp/mod-php
splash/sonata-admin
splash/metadata
splash/openapi
splash/scopes
splash/toolkit
testo/output-teamcity
testo/bridge-symfony