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

Elasticlens Laravel Package

pdphilip/elasticlens

ElasticLens brings Elasticsearch power to Laravel models with Eloquent-style queries. Define your own index models, mappings, and schema—no black box. Run phrase/term searches, filters, embedded fields, geo distance sorting, and pagination with fluent, readable APIs.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Supports the build vs. buy decision for search functionality: eliminates need for third-party services (e.g., Algolia) by providing native Laravel-Elasticsearch integration with Eloquent syntax, reducing costs and vendor lock-in.
  • Enables roadmap features like geolocation-based search, nested object queries, and fuzzy matching without custom Elasticsearch boilerplate.
  • Critical for use cases requiring real-time, high-performance search across large datasets (e.g., e-commerce product catalogs, user directories, or content platforms) where MySQL full-text search is insufficient.

When to Consider This Package

  • Adopt when: Your project uses Laravel + Elasticsearch, needs advanced search capabilities beyond Scout (e.g., geo-filtering, nested objects, field boosting), requires index migration management via CLI, and values tight Eloquent integration. Ideal for teams comfortable with Elasticsearch fundamentals.
  • Look elsewhere if: You’re using a non-Elasticsearch database (e.g., MySQL for search), prefer a fully managed service (e.g., Algolia), or need minimal setup for simple keyword searches (Scout + simple driver suffices). Also avoid if Elasticsearch infrastructure is unavailable or your team lacks ES expertise.

How to Pitch It (Stakeholders)

Executives: "ElasticLens delivers enterprise-grade search capabilities—like geolocation filtering and fuzzy matching—directly within our Laravel stack, eliminating third-party service costs while improving user experience with faster, more relevant results. It scales with our data needs without vendor dependencies."
Engineering: "It replaces custom Elasticsearch integration boilerplate with Eloquent-friendly syntax, auto-syncs models to indexes, and includes CLI tools for migrations and health checks. Built on trusted Laravel-Elasticsearch, it reduces development time by 70%+ for complex search features while maintaining full control over mappings and queries."

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.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport
twbs/bootstrap4